diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2017-02-25 21:09:05 +0000 |
---|---|---|
committer | Руслан Ижбулатов <lrn1986@gmail.com> | 2017-02-26 14:44:00 +0000 |
commit | fe35e1bc5f1a530a1ebe64af73a262cbfad24f09 (patch) | |
tree | d9d8605e3b8b026f3781cd8775f59ae22c05a622 /src/transport/test_transport_api_reliability.c | |
parent | 3aa0118c59db65fcbc312cc86ce6a762f611be3e (diff) | |
download | gnunet-fe35e1bc5f1a530a1ebe64af73a262cbfad24f09.tar.gz gnunet-fe35e1bc5f1a530a1ebe64af73a262cbfad24f09.zip |
ntohl() return value casts for the testsuite on W32
Diffstat (limited to 'src/transport/test_transport_api_reliability.c')
-rw-r--r-- | src/transport/test_transport_api_reliability.c | 10 |
1 files changed, 5 insertions, 5 deletions
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))) |