diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-06-27 15:03:17 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-06-27 15:03:17 +0000 |
commit | 4450e34453501e9449de830d48e1421590181ef7 (patch) | |
tree | 9c82803af9d60b7636f346302bfd84c378b9cafb /src/consensus/gnunet-consensus-profiler.c | |
parent | 855dba1b482a8cb48e17da9a2f05442a9594d24f (diff) | |
download | gnunet-4450e34453501e9449de830d48e1421590181ef7.tar.gz gnunet-4450e34453501e9449de830d48e1421590181ef7.zip |
fix compiler warnings
Diffstat (limited to 'src/consensus/gnunet-consensus-profiler.c')
-rw-r--r-- | src/consensus/gnunet-consensus-profiler.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/consensus/gnunet-consensus-profiler.c b/src/consensus/gnunet-consensus-profiler.c index 4af7740e7..290263d95 100644 --- a/src/consensus/gnunet-consensus-profiler.c +++ b/src/consensus/gnunet-consensus-profiler.c | |||
@@ -98,7 +98,7 @@ controller_cb (void *cls, | |||
98 | 98 | ||
99 | 99 | ||
100 | static void | 100 | static void |
101 | statistics_done_db (void *cls, | 101 | statistics_done_cb (void *cls, |
102 | struct | 102 | struct |
103 | GNUNET_TESTBED_Operation | 103 | GNUNET_TESTBED_Operation |
104 | *op, | 104 | *op, |
@@ -108,6 +108,7 @@ statistics_done_db (void *cls, | |||
108 | GNUNET_TESTBED_operation_done (op); | 108 | GNUNET_TESTBED_operation_done (op); |
109 | if (NULL != statistics_file) | 109 | if (NULL != statistics_file) |
110 | fclose (statistics_file); | 110 | fclose (statistics_file); |
111 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "got statistics, shutting down\n"); | ||
111 | GNUNET_SCHEDULER_shutdown (); | 112 | GNUNET_SCHEDULER_shutdown (); |
112 | } | 113 | } |
113 | 114 | ||
@@ -162,7 +163,7 @@ destroy (void *cls) | |||
162 | statistics_file = fopen (statistics_filename, "w"); | 163 | statistics_file = fopen (statistics_filename, "w"); |
163 | GNUNET_TESTBED_get_statistics (num_peers, peers, NULL, NULL, | 164 | GNUNET_TESTBED_get_statistics (num_peers, peers, NULL, NULL, |
164 | statistics_cb, | 165 | statistics_cb, |
165 | statistics_done_db, | 166 | statistics_done_cb, |
166 | NULL); | 167 | NULL); |
167 | } | 168 | } |
168 | } | 169 | } |
@@ -182,7 +183,7 @@ conclude_cb (void *cls) | |||
182 | 183 | ||
183 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 184 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
184 | "consensus %d done\n", | 185 | "consensus %d done\n", |
185 | chp - consensus_handles); | 186 | (int) (chp - consensus_handles)); |
186 | GNUNET_SCHEDULER_add_now (destroy, *chp); | 187 | GNUNET_SCHEDULER_add_now (destroy, *chp); |
187 | } | 188 | } |
188 | 189 | ||
@@ -349,6 +350,8 @@ static void | |||
349 | disconnect_adapter(void *cls, void *op_result) | 350 | disconnect_adapter(void *cls, void *op_result) |
350 | { | 351 | { |
351 | /* FIXME: what to do here? */ | 352 | /* FIXME: what to do here? */ |
353 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | ||
354 | "disconnect adapter called\n"); | ||
352 | } | 355 | } |
353 | 356 | ||
354 | 357 | ||