diff options
-rw-r--r-- | src/rps/gnunet-rps.c | 3 | ||||
-rw-r--r-- | src/rps/test_rps.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/rps/gnunet-rps.c b/src/rps/gnunet-rps.c index 705c2c9b0..3dbb8053e 100644 --- a/src/rps/gnunet-rps.c +++ b/src/rps/gnunet-rps.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include "gnunet_util_lib.h" | 27 | #include "gnunet_util_lib.h" |
28 | #include "gnunet_rps_service.h" | 28 | #include "gnunet_rps_service.h" |
29 | #include <inttypes.h> | ||
29 | 30 | ||
30 | static int ret; | 31 | static int ret; |
31 | 32 | ||
@@ -146,7 +147,7 @@ run (void *cls, | |||
146 | /* If number was specified use it, else request single peer. */ | 147 | /* If number was specified use it, else request single peer. */ |
147 | num_peers = (NULL == args[0]) ? 1 : atoi (args[0]); | 148 | num_peers = (NULL == args[0]) ? 1 : atoi (args[0]); |
148 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 149 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
149 | "Requesting %u PeerIDs\n", num_peers); | 150 | "Requesting %" PRIu64 " PeerIDs\n", num_peers); |
150 | req_handle = GNUNET_RPS_request_peers (rps_handle, num_peers, reply_handle, NULL); | 151 | req_handle = GNUNET_RPS_request_peers (rps_handle, num_peers, reply_handle, NULL); |
151 | GNUNET_SCHEDULER_add_shutdown (&do_shutdown, NULL); | 152 | GNUNET_SCHEDULER_add_shutdown (&do_shutdown, NULL); |
152 | } | 153 | } |
diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c index 128a81f21..e0fbdbb88 100644 --- a/src/rps/test_rps.c +++ b/src/rps/test_rps.c | |||
@@ -396,7 +396,7 @@ tofile_ (const char *file_name, const char *line) | |||
396 | if (size != size2) | 396 | if (size != size2) |
397 | { | 397 | { |
398 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 398 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
399 | "Unable to write to file! (Size: %u, size2: %u)\n", | 399 | "Unable to write to file! (Size: %lu, size2: %lu)\n", |
400 | size, | 400 | size, |
401 | size2); | 401 | size2); |
402 | return; | 402 | return; |