summaryrefslogtreecommitdiff
path: root/src/transport/test_quota_compliance.c
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/transport/test_quota_compliance.c
parent031f8602639abb222302ce1c3f2fabf7673d49f7 (diff)
more minor fixes
Diffstat (limited to 'src/transport/test_quota_compliance.c')
-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 };
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 ()