diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2017-02-25 12:50:24 +0000 |
---|---|---|
committer | Руслан Ижбулатов <lrn1986@gmail.com> | 2017-02-25 21:03:32 +0000 |
commit | 31f699c7eeacc991abad778f881f51b0dbdcbc6d (patch) | |
tree | b8ff1ccf0ec34b3fc7f38c05c7c8e61c7a625c7a /src/cadet/gnunet-cadet-profiler.c | |
parent | 0eb3848d99441a237ba2a6585a3c054d67f28c53 (diff) | |
download | gnunet-31f699c7eeacc991abad778f881f51b0dbdcbc6d.tar.gz gnunet-31f699c7eeacc991abad778f881f51b0dbdcbc6d.zip |
W32: cast ntohl() result to uint32_t
W32 version of ntohl() returns u_long. Thank you, Microsoft!
Diffstat (limited to 'src/cadet/gnunet-cadet-profiler.c')
-rw-r--r-- | src/cadet/gnunet-cadet-profiler.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cadet/gnunet-cadet-profiler.c b/src/cadet/gnunet-cadet-profiler.c index d688dc60b..15da05b6d 100644 --- a/src/cadet/gnunet-cadet-profiler.c +++ b/src/cadet/gnunet-cadet-profiler.c | |||
@@ -778,7 +778,9 @@ pong_handler (void *cls, struct GNUNET_CADET_Channel *channel, | |||
778 | latency = GNUNET_TIME_absolute_get_duration (send_time); | 778 | latency = GNUNET_TIME_absolute_get_duration (send_time); |
779 | r = ntohl (msg->round_number); | 779 | r = ntohl (msg->round_number); |
780 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%u <- %u (%u) latency: %s\n", | 780 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%u <- %u (%u) latency: %s\n", |
781 | get_index (peer), get_index (peer->dest), ntohl (msg->counter), | 781 | get_index (peer), |
782 | get_index (peer->dest), | ||
783 | (uint32_t) ntohl (msg->counter), | ||
782 | GNUNET_STRINGS_relative_time_to_string (latency, GNUNET_NO)); | 784 | GNUNET_STRINGS_relative_time_to_string (latency, GNUNET_NO)); |
783 | 785 | ||
784 | /* Online variance calculation */ | 786 | /* Online variance calculation */ |