summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2020-10-26 14:51:59 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2020-10-26 15:00:21 +0100
commitbe928bb303f6100c40e4d84b2b350da690171987 (patch)
tree81a235d70dad1a4ec6e1cb04d44caef7b7bf2765 /src
parent092c2c714e085a66834127bfb1e841486fd4f54c (diff)
-fix some warnings
Diffstat (limited to 'src')
-rw-r--r--src/fragmentation/fragmentation.c2
-rw-r--r--src/statistics/statistics_api.c2
-rw-r--r--src/util/strings.c3
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;
}