From 50f16c6a4fe992ab25637fb80a67b9d4e59b789a Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Mon, 6 Jul 2020 14:36:28 +0200 Subject: -fix: variable size in test --- src/transport/transport_api_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/transport/transport_api_core.c') diff --git a/src/transport/transport_api_core.c b/src/transport/transport_api_core.c index 55647508d..7d4b415bd 100644 --- a/src/transport/transport_api_core.c +++ b/src/transport/transport_api_core.c @@ -622,13 +622,14 @@ handle_send_ok (void *cls, const struct SendOkMessage *okm) struct Neighbour *n; uint32_t bytes_msg; uint32_t bytes_physical; + uint16_t success = ntohs (okm->success); - bytes_msg = ntohl (okm->bytes_msg); + bytes_msg = ntohs (okm->bytes_msg); bytes_physical = ntohl (okm->bytes_physical); LOG (GNUNET_ERROR_TYPE_DEBUG, "Receiving SEND_OK message, transmission to %s %s.\n", GNUNET_i2s (&okm->peer), - ntohl (okm->success) == GNUNET_OK ? "succeeded" : "failed"); + success == GNUNET_OK ? "succeeded" : "failed"); n = neighbour_find (h, &okm->peer); if (NULL == n) { -- cgit v1.2.3