From 9831eaa3161d6be1706db49b2ed5019c039ec5b3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 10 Jul 2016 01:24:09 +0000 Subject: more minor fixes --- src/transport/test_quota_compliance.c | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c index 87833ff83..e574cd8f6 100644 --- a/src/transport/test_quota_compliance.c +++ b/src/transport/test_quota_compliance.c @@ -55,10 +55,6 @@ static unsigned long long quota_out[] = { 10000, 10000 }; static struct GNUNET_TRANSPORT_TESTING_ConnectCheckContext *ccc; -/* - * Testcase specific declarations - */ - /** * Note that this value must not significantly exceed * 'MAX_PENDING' in 'gnunet-service-transport.c', otherwise @@ -72,27 +68,19 @@ GNUNET_NETWORK_STRUCT_BEGIN struct TestMessage { struct GNUNET_MessageHeader header; - uint32_t num; + + uint32_t num GNUNET_PACKED; }; GNUNET_NETWORK_STRUCT_END static int msg_scheduled; + static int msg_sent; static unsigned long long total_bytes_sent; static struct GNUNET_TIME_Absolute start_time; -/* - * END Testcase specific declarations - */ - -#if VERBOSE -#define OKPP do { ok++; FPRINTF (stderr, "Now at stage %u at %s:%u\n", ok, __FILE__, __LINE__); } while (0) -#else -#define OKPP do { ok++; } while (0) -#endif - static void report () -- cgit v1.2.3