diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-05-12 16:53:40 +0200 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-05-12 16:53:40 +0200 |
commit | 5087e28bb336fca805a92af1b51c881f37f4f3c8 (patch) | |
tree | 7835db808695c5e3b9079a64a40b00b9ff994c9b /src/transport/gnunet-communicator-udp.c | |
parent | 77fd866573c80dad544cc010fc3fd74ca9cddd93 (diff) | |
download | gnunet-5087e28bb336fca805a92af1b51c881f37f4f3c8.tar.gz gnunet-5087e28bb336fca805a92af1b51c881f37f4f3c8.zip |
-fix compiler warnings
Diffstat (limited to 'src/transport/gnunet-communicator-udp.c')
-rw-r--r-- | src/transport/gnunet-communicator-udp.c | 20 |
1 files changed, 10 insertions, 10 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) | |||
2691 | struct GNUNET_TIME_Relative rt; | 2691 | struct GNUNET_TIME_Relative rt; |
2692 | 2692 | ||
2693 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2693 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2694 | "Timeout is %lu\n.", | 2694 | "Timeout is %llu\n.", |
2695 | receiver->rekey_timeout.abs_value_us); | 2695 | (unsigned long long) receiver->rekey_timeout.abs_value_us); |
2696 | 2696 | ||
2697 | if (0 == receiver->rekey_timeout.abs_value_us) | 2697 | if (0 == receiver->rekey_timeout.abs_value_us) |
2698 | { | 2698 | { |
@@ -2703,21 +2703,21 @@ check_for_rekeying (struct ReceiverAddress *receiver, struct UDPBox *box) | |||
2703 | { | 2703 | { |
2704 | rt = GNUNET_TIME_absolute_get_remaining (receiver->rekey_timeout); | 2704 | rt = GNUNET_TIME_absolute_get_remaining (receiver->rekey_timeout); |
2705 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2705 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2706 | "Relative time is %lu and timeout is %lu\n.", | 2706 | "Relative time is %llu and timeout is %llu\n.", |
2707 | rt.rel_value_us, | 2707 | (unsigned long long) rt.rel_value_us, |
2708 | receiver->rekey_timeout.abs_value_us); | 2708 | (unsigned long long) receiver->rekey_timeout.abs_value_us); |
2709 | 2709 | ||
2710 | if ((0 == rt.rel_value_us) || (receiver->rekey_send_bytes > | 2710 | if ((0 == rt.rel_value_us) || (receiver->rekey_send_bytes > |
2711 | rekey_max_bytes) ) | 2711 | rekey_max_bytes) ) |
2712 | { | 2712 | { |
2713 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2713 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2714 | "Bytes send %lu greater than %llu max bytes\n.", | 2714 | "Bytes send %llu greater than %llu max bytes\n.", |
2715 | receiver->rekey_send_bytes, | 2715 | (unsigned long long) receiver->rekey_send_bytes, |
2716 | rekey_max_bytes); | 2716 | rekey_max_bytes); |
2717 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2717 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2718 | "Relative time is %lu and timeout is %lu\n.", | 2718 | "Relative time is %llu and timeout is %llu\n.", |
2719 | rt.rel_value_us, | 2719 | (unsigned long long) rt.rel_value_us, |
2720 | receiver->rekey_timeout.abs_value_us); | 2720 | (unsigned long long) receiver->rekey_timeout.abs_value_us); |
2721 | 2721 | ||
2722 | receiver->rekey_timeout.abs_value_us = 0; | 2722 | receiver->rekey_timeout.abs_value_us = 0; |
2723 | receiver->rekey_send_bytes = 0; | 2723 | receiver->rekey_send_bytes = 0; |