aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-10 01:24:09 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-10 01:24:09 +0000
commit9831eaa3161d6be1706db49b2ed5019c039ec5b3 (patch)
tree260cc96cb24ff5596f82509d4cb33d1ec9bfffcb /src
parent031f8602639abb222302ce1c3f2fabf7673d49f7 (diff)
downloadgnunet-9831eaa3161d6be1706db49b2ed5019c039ec5b3.tar.gz
gnunet-9831eaa3161d6be1706db49b2ed5019c039ec5b3.zip
more minor fixes
Diffstat (limited to 'src')
-rw-r--r--src/transport/test_quota_compliance.c18
1 files changed, 3 insertions, 15 deletions
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 };
55static struct GNUNET_TRANSPORT_TESTING_ConnectCheckContext *ccc; 55static struct GNUNET_TRANSPORT_TESTING_ConnectCheckContext *ccc;
56 56
57 57
58/*
59 * Testcase specific declarations
60 */
61
62/** 58/**
63 * Note that this value must not significantly exceed 59 * Note that this value must not significantly exceed
64 * 'MAX_PENDING' in 'gnunet-service-transport.c', otherwise 60 * 'MAX_PENDING' in 'gnunet-service-transport.c', otherwise
@@ -72,27 +68,19 @@ GNUNET_NETWORK_STRUCT_BEGIN
72struct TestMessage 68struct TestMessage
73{ 69{
74 struct GNUNET_MessageHeader header; 70 struct GNUNET_MessageHeader header;
75 uint32_t num; 71
72 uint32_t num GNUNET_PACKED;
76}; 73};
77GNUNET_NETWORK_STRUCT_END 74GNUNET_NETWORK_STRUCT_END
78 75
79static int msg_scheduled; 76static int msg_scheduled;
77
80static int msg_sent; 78static int msg_sent;
81 79
82static unsigned long long total_bytes_sent; 80static unsigned long long total_bytes_sent;
83 81
84static struct GNUNET_TIME_Absolute start_time; 82static struct GNUNET_TIME_Absolute start_time;
85 83
86/*
87 * END Testcase specific declarations
88 */
89
90#if VERBOSE
91#define OKPP do { ok++; FPRINTF (stderr, "Now at stage %u at %s:%u\n", ok, __FILE__, __LINE__); } while (0)
92#else
93#define OKPP do { ok++; } while (0)
94#endif
95
96 84
97static void 85static void
98report () 86report ()