diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2020-10-26 14:51:59 +0100 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2020-10-26 15:00:21 +0100 |
commit | be928bb303f6100c40e4d84b2b350da690171987 (patch) | |
tree | 81a235d70dad1a4ec6e1cb04d44caef7b7bf2765 /src | |
parent | 092c2c714e085a66834127bfb1e841486fd4f54c (diff) | |
download | gnunet-be928bb303f6100c40e4d84b2b350da690171987.tar.gz gnunet-be928bb303f6100c40e4d84b2b350da690171987.zip |
-fix some warnings
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) | |||
158 | sizeof(buf), | 158 | sizeof(buf), |
159 | "%u-%llX", | 159 | "%u-%llX", |
160 | ntohl (fa->fragment_id), | 160 | ntohl (fa->fragment_id), |
161 | GNUNET_ntohll (fa->bits)); | 161 | (unsigned long long) GNUNET_ntohll (fa->bits)); |
162 | return buf; | 162 | return buf; |
163 | } | 163 | } |
164 | 164 | ||
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, | |||
472 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 472 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
473 | "Received valid statistic on `%s:%s': %llu\n", | 473 | "Received valid statistic on `%s:%s': %llu\n", |
474 | service, name, | 474 | service, name, |
475 | GNUNET_ntohll (smsg->value)); | 475 | (unsigned long long) GNUNET_ntohll (smsg->value)); |
476 | if (GNUNET_OK != | 476 | if (GNUNET_OK != |
477 | h->current->proc (h->current->cls, | 477 | h->current->proc (h->current->cls, |
478 | service, | 478 | 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, | |||
739 | } | 739 | } |
740 | } | 740 | } |
741 | } | 741 | } |
742 | GNUNET_snprintf (buf, sizeof(buf), "%llu %s", dval, unit); | 742 | GNUNET_snprintf (buf, sizeof(buf), "%llu %s", |
743 | (unsigned long long) dval, unit); | ||
743 | return buf; | 744 | return buf; |
744 | } | 745 | } |
745 | 746 | ||