diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-25 00:30:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-25 00:30:00 +0000 |
commit | d0701eb6315fc3f5aca74415bbf0ff7418409f87 (patch) | |
tree | fcacb97bbcca542ce9493001c825fd265cb8a801 /src/transport/test_quota_compliance.c | |
parent | 9bfb8bff3fd253407530c76c7590b33bacf033f1 (diff) |
switching transport tests to new MQ-based transport API
Diffstat (limited to 'src/transport/test_quota_compliance.c')
-rw-r--r-- | src/transport/test_quota_compliance.c | 10 |
1 files changed, 4 insertions, 6 deletions
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); } |