diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fragmentation/fragmentation.c | 2 | ||||
-rw-r--r-- | src/statistics/statistics_api.c | 2 | ||||
-rw-r--r-- | src/util/strings.c | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/fragmentation/fragmentation.c b/src/fragmentation/fragmentation.c index 3a7da37e8..36e1c33f4 100644 --- a/src/fragmentation/fragmentation.c +++ b/src/fragmentation/fragmentation.c @@ -158,7 +158,7 @@ GNUNET_FRAGMENT_print_ack (const struct GNUNET_MessageHeader *ack) sizeof(buf), "%u-%llX", ntohl (fa->fragment_id), - GNUNET_ntohll (fa->bits)); + (unsigned long long) GNUNET_ntohll (fa->bits)); return buf; } diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c index 12c09b7d2..bf0a90b45 100644 --- a/src/statistics/statistics_api.c +++ b/src/statistics/statistics_api.c @@ -472,7 +472,7 @@ handle_statistics_value (void *cls, LOG (GNUNET_ERROR_TYPE_DEBUG, "Received valid statistic on `%s:%s': %llu\n", service, name, - GNUNET_ntohll (smsg->value)); + (unsigned long long) GNUNET_ntohll (smsg->value)); if (GNUNET_OK != h->current->proc (h->current->cls, service, diff --git a/src/util/strings.c b/src/util/strings.c index 381b66e1e..0fb6eaf0c 100644 --- a/src/util/strings.c +++ b/src/util/strings.c @@ -739,7 +739,8 @@ GNUNET_STRINGS_relative_time_to_string (struct GNUNET_TIME_Relative delta, } } } - GNUNET_snprintf (buf, sizeof(buf), "%llu %s", dval, unit); + GNUNET_snprintf (buf, sizeof(buf), "%llu %s", + (unsigned long long) dval, unit); return buf; } |