[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: fix warnings
From: |
gnunet |
Subject: |
[gnunet] branch master updated: fix warnings |
Date: |
Wed, 25 Dec 2019 13:38:31 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 817ec33a8 fix warnings
817ec33a8 is described below
commit 817ec33a8844965269f99950b4f198c8f237c130
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Dec 25 13:35:19 2019 +0100
fix warnings
---
src/transport/test_communicator_basic.c | 40 +++++++++++++++++----------------
1 file changed, 21 insertions(+), 19 deletions(-)
diff --git a/src/transport/test_communicator_basic.c
b/src/transport/test_communicator_basic.c
index 7ae50be05..f697f17b3 100644
--- a/src/transport/test_communicator_basic.c
+++ b/src/transport/test_communicator_basic.c
@@ -238,7 +238,7 @@ long_test (void *cls)
NULL);
GNUNET_SCHEDULER_add_now (&long_test, NULL);
- //if (num_sent == BURST_PACKETS)
+ // if (num_sent == BURST_PACKETS)
// GNUNET_SCHEDULER_add_delayed (LONG_BURST_WINDOW,
// &long_test, NULL);
return;
@@ -269,12 +269,10 @@ short_test (void *cls)
GNUNET_SCHEDULER_add_delayed (SHORT_BURST_WINDOW,
&short_test, NULL);
return;
- }*/
- }
+ }*/}
}
-
/**
* @brief Handle opening of queue
*
@@ -356,12 +354,14 @@ incoming_message_cb (void *cls,
"Short size packet test done.\n");
GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE,
"%lu/%lu packets in %llu us (%llu kb/s) -- avg latency: %llu
us\n",
- num_received,
- num_sent,
- duration.rel_value_us,
- (SHORT_MESSAGE_SIZE * num_received) / (duration.rel_value_us
- / 1000),
- avg_latency);
+ (unsigned long) num_received,
+ (unsigned long) num_sent,
+ (unsigned long long) duration.rel_value_us,
+ (unsigned long long) ((SHORT_MESSAGE_SIZE * num_received)
+ / (duration.rel_value_us
+ /
+ 1000)),
+ (unsigned long long) avg_latency);
start_long = GNUNET_TIME_absolute_get ();
phase = BURST_LONG;
num_sent = 0;
@@ -390,12 +390,14 @@ incoming_message_cb (void *cls,
"Long size packet test done.\n");
GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE,
"%lu/%lu packets in %llu us (%llu kb/s) -- avg latency: %llu
us\n",
- num_received,
- num_sent,
- duration.rel_value_us,
- (LONG_MESSAGE_SIZE * num_received) / (duration.rel_value_us
- / 1000),
- avg_latency);
+ (unsigned long) num_received,
+ (unsigned long) num_sent,
+ (unsigned long long) duration.rel_value_us,
+ (unsigned long long) ((LONG_MESSAGE_SIZE * num_received)
+ / (duration.rel_value_us
+ /
+ 1000)),
+ (unsigned long long) avg_latency);
ack = 10;
phase = SIZE_CHECK;
num_received = 0;
@@ -417,9 +419,9 @@ incoming_message_cb (void *cls,
"Size packet test done.\n");
GNUNET_log (GNUNET_ERROR_TYPE_MESSAGE,
"%lu/%lu packets -- avg latency: %llu us\n",
- num_received,
- num_sent,
- avg_latency);
+ (unsigned long) num_received,
+ (unsigned long) num_sent,
+ (unsigned long long) avg_latency);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Finished\n");
GNUNET_SCHEDULER_cancel (to_task);
--
To stop receiving notification emails like this one, please contact
address@hidden.