aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_quota_compliance.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/test_quota_compliance.c')
-rw-r--r--src/transport/test_quota_compliance.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c
index 219971725..d8ac5eab3 100644
--- a/src/transport/test_quota_compliance.c
+++ b/src/transport/test_quota_compliance.c
@@ -236,7 +236,7 @@ struct TestMessage
236}; 236};
237 237
238static unsigned int 238static unsigned int
239get_size (void) 239get_size ()
240{ 240{
241 return MEASUREMENT_MSG_SIZE + sizeof (struct TestMessage); 241 return MEASUREMENT_MSG_SIZE + sizeof (struct TestMessage);
242} 242}
@@ -247,11 +247,9 @@ notify_receive_new (void *cls,
247 const struct GNUNET_MessageHeader *message, 247 const struct GNUNET_MessageHeader *message,
248 const struct GNUNET_TRANSPORT_ATS_Information *ats, uint32_t ats_count) 248 const struct GNUNET_TRANSPORT_ATS_Information *ats, uint32_t ats_count)
249{ 249{
250 unsigned int s;
251 const struct TestMessage *hdr; 250 const struct TestMessage *hdr;
252 251
253 hdr = (const struct TestMessage*) message; 252 hdr = (const struct TestMessage*) message;
254 s = get_size ();
255 if (measurement_running == GNUNET_NO) 253 if (measurement_running == GNUNET_NO)
256 return; 254 return;
257 if (MTYPE != ntohs (message->type)) 255 if (MTYPE != ntohs (message->type))