From d0701eb6315fc3f5aca74415bbf0ff7418409f87 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 25 Jul 2016 00:30:00 +0000 Subject: switching transport tests to new MQ-based transport API --- src/transport/test_quota_compliance.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/transport/test_quota_compliance.c') diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c index 5bd3f0237..73b773b88 100644 --- a/src/transport/test_quota_compliance.c +++ b/src/transport/test_quota_compliance.c @@ -127,14 +127,12 @@ static void notify_receive (void *cls, struct GNUNET_TRANSPORT_TESTING_PeerContext *receiver, const struct GNUNET_PeerIdentity *sender, - const struct GNUNET_MessageHeader *message) + const struct GNUNET_TRANSPORT_TESTING_TestMessage *hdr) { - const struct GNUNET_TRANSPORT_TESTING_TestMessage *hdr; - hdr = (const struct GNUNET_TRANSPORT_TESTING_TestMessage *) message; - if (GNUNET_TRANSPORT_TESTING_SIMPLE_MTYPE != ntohs (message->type)) + if (GNUNET_TRANSPORT_TESTING_SIMPLE_MTYPE != ntohs (hdr->header.type)) return; - total_bytes_recv += ntohs (message->size); + total_bytes_recv += ntohs (hdr->header.size); { char *ps = GNUNET_strdup (GNUNET_i2s (&receiver->id)); @@ -144,7 +142,7 @@ notify_receive (void *cls, receiver->no, ps, ntohl (hdr->num), - ntohs (message->size), + ntohs (hdr->header.size), GNUNET_i2s (sender)); GNUNET_free (ps); } -- cgit v1.2.3