diff options
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/test_transport_address_switch.c | 2 | ||||
-rw-r--r-- | src/transport/test_transport_api_reliability.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/transport/test_transport_address_switch.c b/src/transport/test_transport_address_switch.c index 33b0f2d14..e076d3501 100644 --- a/src/transport/test_transport_address_switch.c +++ b/src/transport/test_transport_address_switch.c | |||
@@ -301,7 +301,7 @@ notify_receive (void *cls, | |||
301 | "Peer %u (`%s') got message %u of size %u from peer (`%s')\n", | 301 | "Peer %u (`%s') got message %u of size %u from peer (`%s')\n", |
302 | receiver->no, | 302 | receiver->no, |
303 | ps, | 303 | ps, |
304 | ntohl (hdr->num), | 304 | (uint32_t) ntohl (hdr->num), |
305 | ntohs (hdr->header.size), | 305 | ntohs (hdr->header.size), |
306 | GNUNET_i2s (sender)); | 306 | GNUNET_i2s (sender)); |
307 | GNUNET_free (ps); | 307 | GNUNET_free (ps); |
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c index d6702cc25..da0f24ef0 100644 --- a/src/transport/test_transport_api_reliability.c +++ b/src/transport/test_transport_api_reliability.c | |||
@@ -228,10 +228,10 @@ notify_receive (void *cls, | |||
228 | { | 228 | { |
229 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 229 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
230 | "Expected message %u of size %u, got %u bytes of message %u\n", | 230 | "Expected message %u of size %u, got %u bytes of message %u\n", |
231 | ntohl (hdr->num), | 231 | (uint32_t) ntohl (hdr->num), |
232 | s, | 232 | s, |
233 | ntohs (hdr->header.size), | 233 | ntohs (hdr->header.size), |
234 | ntohl (hdr->num)); | 234 | (uint32_t) ntohl (hdr->num)); |
235 | ccc->global_ret = GNUNET_SYSERR; | 235 | ccc->global_ret = GNUNET_SYSERR; |
236 | GNUNET_SCHEDULER_shutdown (); | 236 | GNUNET_SCHEDULER_shutdown (); |
237 | return; | 237 | return; |
@@ -247,7 +247,7 @@ notify_receive (void *cls, | |||
247 | { | 247 | { |
248 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 248 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
249 | "Expected message %u with bits %u, but body did not match\n", | 249 | "Expected message %u with bits %u, but body did not match\n", |
250 | ntohl (hdr->num), | 250 | (uint32_t) ntohl (hdr->num), |
251 | (unsigned char) ntohl (hdr->num)); | 251 | (unsigned char) ntohl (hdr->num)); |
252 | ccc->global_ret = GNUNET_SYSERR; | 252 | ccc->global_ret = GNUNET_SYSERR; |
253 | GNUNET_SCHEDULER_shutdown (); | 253 | GNUNET_SCHEDULER_shutdown (); |
@@ -258,7 +258,7 @@ notify_receive (void *cls, | |||
258 | { | 258 | { |
259 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 259 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
260 | "Got message %u of size %u\n", | 260 | "Got message %u of size %u\n", |
261 | ntohl (hdr->num), | 261 | (uint32_t) ntohl (hdr->num), |
262 | ntohs (hdr->header.size)); | 262 | ntohs (hdr->header.size)); |
263 | } | 263 | } |
264 | #endif | 264 | #endif |
@@ -267,7 +267,7 @@ notify_receive (void *cls, | |||
267 | { | 267 | { |
268 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 268 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
269 | "Message id %u is bigger than maxmimum number of messages %u expected\n", | 269 | "Message id %u is bigger than maxmimum number of messages %u expected\n", |
270 | ntohl (hdr->num), | 270 | (uint32_t) ntohl (hdr->num), |
271 | TOTAL_MSGS / xhdr); | 271 | TOTAL_MSGS / xhdr); |
272 | } | 272 | } |
273 | if (0 == (n % (TOTAL_MSGS / xhdr / 100))) | 273 | if (0 == (n % (TOTAL_MSGS / xhdr / 100))) |