summaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2021-05-12 16:53:40 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-05-12 16:53:40 +0200
commit5087e28bb336fca805a92af1b51c881f37f4f3c8 (patch)
tree7835db808695c5e3b9079a64a40b00b9ff994c9b /src/transport
parent77fd866573c80dad544cc010fc3fd74ca9cddd93 (diff)
-fix compiler warnings
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/gnunet-communicator-udp.c20
-rw-r--r--src/transport/gnunet-service-tng.c5
2 files changed, 13 insertions, 12 deletions
diff --git a/src/transport/gnunet-communicator-udp.c b/src/transport/gnunet-communicator-udp.c
index fa9bb5d0a..ef7b1d6c0 100644
--- a/src/transport/gnunet-communicator-udp.c
+++ b/src/transport/gnunet-communicator-udp.c
@@ -2691,8 +2691,8 @@ check_for_rekeying (struct ReceiverAddress *receiver, struct UDPBox *box)
struct GNUNET_TIME_Relative rt;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Timeout is %lu\n.",
- receiver->rekey_timeout.abs_value_us);
+ "Timeout is %llu\n.",
+ (unsigned long long) receiver->rekey_timeout.abs_value_us);
if (0 == receiver->rekey_timeout.abs_value_us)
{
@@ -2703,21 +2703,21 @@ check_for_rekeying (struct ReceiverAddress *receiver, struct UDPBox *box)
{
rt = GNUNET_TIME_absolute_get_remaining (receiver->rekey_timeout);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Relative time is %lu and timeout is %lu\n.",
- rt.rel_value_us,
- receiver->rekey_timeout.abs_value_us);
+ "Relative time is %llu and timeout is %llu\n.",
+ (unsigned long long) rt.rel_value_us,
+ (unsigned long long) receiver->rekey_timeout.abs_value_us);
if ((0 == rt.rel_value_us) || (receiver->rekey_send_bytes >
rekey_max_bytes) )
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Bytes send %lu greater than %llu max bytes\n.",
- receiver->rekey_send_bytes,
+ "Bytes send %llu greater than %llu max bytes\n.",
+ (unsigned long long) receiver->rekey_send_bytes,
rekey_max_bytes);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Relative time is %lu and timeout is %lu\n.",
- rt.rel_value_us,
- receiver->rekey_timeout.abs_value_us);
+ "Relative time is %llu and timeout is %llu\n.",
+ (unsigned long long) rt.rel_value_us,
+ (unsigned long long) receiver->rekey_timeout.abs_value_us);
receiver->rekey_timeout.abs_value_us = 0;
receiver->rekey_send_bytes = 0;
diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c
index 613477220..e6e93e3b6 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -9069,8 +9069,9 @@ handle_send_message_ack (void *cls,
qep = qep->next)
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "QueueEntry MID: %lu, Ack MID: %lu\n",
- qep->mid, sma->mid);
+ "QueueEntry MID: %llu, Ack MID: %llu\n",
+ (unsigned long long) qep->mid,
+ (unsigned long long) sma->mid);
if (qep->mid != sma->mid)
continue;
qe = qep;