diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-10 01:24:09 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-10 01:24:09 +0000 |
commit | 9831eaa3161d6be1706db49b2ed5019c039ec5b3 (patch) | |
tree | 260cc96cb24ff5596f82509d4cb33d1ec9bfffcb /src/transport/test_quota_compliance.c | |
parent | 031f8602639abb222302ce1c3f2fabf7673d49f7 (diff) | |
download | gnunet-9831eaa3161d6be1706db49b2ed5019c039ec5b3.tar.gz gnunet-9831eaa3161d6be1706db49b2ed5019c039ec5b3.zip |
more minor fixes
Diffstat (limited to 'src/transport/test_quota_compliance.c')
-rw-r--r-- | src/transport/test_quota_compliance.c | 18 |
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 }; | |||
55 | static struct GNUNET_TRANSPORT_TESTING_ConnectCheckContext *ccc; | 55 | static 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 | |||
72 | struct TestMessage | 68 | struct 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 | }; |
77 | GNUNET_NETWORK_STRUCT_END | 74 | GNUNET_NETWORK_STRUCT_END |
78 | 75 | ||
79 | static int msg_scheduled; | 76 | static int msg_scheduled; |
77 | |||
80 | static int msg_sent; | 78 | static int msg_sent; |
81 | 79 | ||
82 | static unsigned long long total_bytes_sent; | 80 | static unsigned long long total_bytes_sent; |
83 | 81 | ||
84 | static struct GNUNET_TIME_Absolute start_time; | 82 | static 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 | ||
97 | static void | 85 | static void |
98 | report () | 86 | report () |