aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_reliability.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-06 15:01:44 +0000
committerChristian Grothoff <christian@grothoff.org>2016-05-06 15:01:44 +0000
commit221996eb735384bb5478819e4358d2c648a16d7b (patch)
treefa8049781525b35c0689ddaf89792e60416bcff7 /src/transport/test_transport_api_reliability.c
parent34aad61f423d2f6078ecfe51cb7a650fe528ab96 (diff)
downloadgnunet-221996eb735384bb5478819e4358d2c648a16d7b.tar.gz
gnunet-221996eb735384bb5478819e4358d2c648a16d7b.zip
fix compiler warnings
Diffstat (limited to 'src/transport/test_transport_api_reliability.c')
-rw-r--r--src/transport/test_transport_api_reliability.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c
index cc2115a48..fe2ac78e0 100644
--- a/src/transport/test_transport_api_reliability.c
+++ b/src/transport/test_transport_api_reliability.c
@@ -318,8 +318,9 @@ set_bit (unsigned int bitIdx)
318 if (bitIdx >= sizeof (bitmap) * 8) 318 if (bitIdx >= sizeof (bitmap) * 8)
319 { 319 {
320 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 320 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
321 "tried to set bit %d of %d(!?!?)\n", 321 "tried to set bit %u of %u(!?!?)\n",
322 bitIdx, sizeof (bitmap) * 8); 322 bitIdx,
323 (unsigned int) sizeof (bitmap) * 8);
323 return GNUNET_SYSERR; 324 return GNUNET_SYSERR;
324 } 325 }
325 arraySlot = bitIdx / 8; 326 arraySlot = bitIdx / 8;
@@ -341,8 +342,10 @@ get_bit (const char *map, unsigned int bit)
341{ 342{
342 if (bit > TOTAL_MSGS) 343 if (bit > TOTAL_MSGS)
343 { 344 {
344 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "get bit %d of %d(!?!?)\n", bit, 345 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
345 sizeof (bitmap) * 8); 346 "get bit %u of %u(!?!?)\n",
347 bit,
348 (unsigned int) sizeof (bitmap) * 8);
346 return 0; 349 return 0;
347 } 350 }
348 return ((map)[bit >> 3] & (1 << (bit & 7))) > 0; 351 return ((map)[bit >> 3] & (1 << (bit & 7))) > 0;