diff options
Diffstat (limited to 'src/statistics/gnunet-statistics.c')
-rw-r--r-- | src/statistics/gnunet-statistics.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/statistics/gnunet-statistics.c b/src/statistics/gnunet-statistics.c index d05765c4a..857c9bde6 100644 --- a/src/statistics/gnunet-statistics.c +++ b/src/statistics/gnunet-statistics.c | |||
@@ -166,7 +166,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
166 | GNUNET_assert (GNUNET_OK == | 166 | GNUNET_assert (GNUNET_OK == |
167 | GNUNET_STATISTICS_watch_cancel (h, subsystem, name, &printer, h)); | 167 | GNUNET_STATISTICS_watch_cancel (h, subsystem, name, &printer, h)); |
168 | GNUNET_STATISTICS_destroy (h, GNUNET_NO); | 168 | GNUNET_STATISTICS_destroy (h, GNUNET_NO); |
169 | h = NULL; | 169 | h = NULL; |
170 | } | 170 | } |
171 | 171 | ||
172 | 172 | ||
@@ -248,16 +248,16 @@ main_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
248 | * | 248 | * |
249 | * @param cls closure with our configuration | 249 | * @param cls closure with our configuration |
250 | * @param result #GNUNET_YES if the resolver is running | 250 | * @param result #GNUNET_YES if the resolver is running |
251 | */ | 251 | */ |
252 | static void | 252 | static void |
253 | resolver_test_task (void *cls, | 253 | resolver_test_task (void *cls, |
254 | int result) | 254 | int result) |
255 | { | 255 | { |
256 | struct GNUNET_CONFIGURATION_Handle *cfg = cls; | 256 | struct GNUNET_CONFIGURATION_Handle *cfg = cls; |
257 | 257 | ||
258 | if (GNUNET_YES != result) | 258 | if (GNUNET_YES != result) |
259 | { | 259 | { |
260 | FPRINTF (stderr, | 260 | FPRINTF (stderr, |
261 | _("Trying to connect to remote host, but service `%s' is not running\n"), "resolver"); | 261 | _("Trying to connect to remote host, but service `%s' is not running\n"), "resolver"); |
262 | return; | 262 | return; |
263 | } | 263 | } |
@@ -272,13 +272,13 @@ resolver_test_task (void *cls, | |||
272 | } | 272 | } |
273 | else if (65535 <= remote_port) | 273 | else if (65535 <= remote_port) |
274 | { | 274 | { |
275 | FPRINTF (stderr, | 275 | FPRINTF (stderr, |
276 | _("A port has to be between 1 and 65535 to connect to host `%s'\n"), remote_host); | 276 | _("A port has to be between 1 and 65535 to connect to host `%s'\n"), remote_host); |
277 | return; | 277 | return; |
278 | } | 278 | } |
279 | 279 | ||
280 | /* Manipulate configuration */ | 280 | /* Manipulate configuration */ |
281 | GNUNET_CONFIGURATION_set_value_string (cfg, | 281 | GNUNET_CONFIGURATION_set_value_string (cfg, |
282 | "statistics", "UNIXPATH", ""); | 282 | "statistics", "UNIXPATH", ""); |
283 | GNUNET_CONFIGURATION_set_value_string (cfg, | 283 | GNUNET_CONFIGURATION_set_value_string (cfg, |
284 | "statistics", "HOSTNAME", remote_host); | 284 | "statistics", "HOSTNAME", remote_host); |
@@ -312,7 +312,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
312 | set_value = GNUNET_YES; | 312 | set_value = GNUNET_YES; |
313 | } | 313 | } |
314 | if (NULL != remote_host) | 314 | if (NULL != remote_host) |
315 | GNUNET_CLIENT_service_test ("resolver", cfg, GNUNET_TIME_UNIT_SECONDS, | 315 | GNUNET_CLIENT_service_test ("resolver", cfg, GNUNET_TIME_UNIT_SECONDS, |
316 | &resolver_test_task, (void *) cfg); | 316 | &resolver_test_task, (void *) cfg); |
317 | else | 317 | else |
318 | GNUNET_SCHEDULER_add_now (&main_task, (void *) cfg); | 318 | GNUNET_SCHEDULER_add_now (&main_task, (void *) cfg); |