summaryrefslogtreecommitdiff
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)
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)
if (bitIdx >= sizeof (bitmap) * 8)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "tried to set bit %d of %d(!?!?)\n",
- bitIdx, sizeof (bitmap) * 8);
+ "tried to set bit %u of %u(!?!?)\n",
+ bitIdx,
+ (unsigned int) sizeof (bitmap) * 8);
return GNUNET_SYSERR;
}
arraySlot = bitIdx / 8;
@@ -341,8 +342,10 @@ get_bit (const char *map, unsigned int bit)
{
if (bit > TOTAL_MSGS)
{
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "get bit %d of %d(!?!?)\n", bit,
- sizeof (bitmap) * 8);
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "get bit %u of %u(!?!?)\n",
+ bit,
+ (unsigned int) sizeof (bitmap) * 8);
return 0;
}
return ((map)[bit >> 3] & (1 << (bit & 7))) > 0;