aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/gnunet-service-statistics.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-18 14:09:55 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-18 14:09:55 +0000
commit200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7 (patch)
treef89388586fbf00a3b7c985b2b28bb74abda3a364 /src/statistics/gnunet-service-statistics.c
parent640ae593fd34d27034f994a2e945a8942f1a4d5d (diff)
downloadgnunet-200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7.tar.gz
gnunet-200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7.zip
localization
of scopes
Diffstat (limited to 'src/statistics/gnunet-service-statistics.c')
-rw-r--r--src/statistics/gnunet-service-statistics.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c
index 428ce932f..efc6ce128 100644
--- a/src/statistics/gnunet-service-statistics.c
+++ b/src/statistics/gnunet-service-statistics.c
@@ -420,17 +420,6 @@ handle_set (void *cls,
420 420
421 421
422/** 422/**
423 * List of handlers for the messages understood by this
424 * service.
425 */
426static struct GNUNET_SERVER_MessageHandler handlers[] = {
427 {&handle_set, NULL, GNUNET_MESSAGE_TYPE_STATISTICS_SET, 0},
428 {&handle_get, NULL, GNUNET_MESSAGE_TYPE_STATISTICS_GET, 0},
429 {NULL, NULL, 0, 0}
430};
431
432
433/**
434 * Task run during shutdown. 423 * Task run during shutdown.
435 * 424 *
436 * @param cls unused 425 * @param cls unused
@@ -458,6 +447,11 @@ run (void *cls,
458 struct GNUNET_SERVER_Handle *server, 447 struct GNUNET_SERVER_Handle *server,
459 const struct GNUNET_CONFIGURATION_Handle *c) 448 const struct GNUNET_CONFIGURATION_Handle *c)
460{ 449{
450 static const struct GNUNET_SERVER_MessageHandler handlers[] = {
451 {&handle_set, NULL, GNUNET_MESSAGE_TYPE_STATISTICS_SET, 0},
452 {&handle_get, NULL, GNUNET_MESSAGE_TYPE_STATISTICS_GET, 0},
453 {NULL, NULL, 0, 0}
454 };
461 cfg = c; 455 cfg = c;
462 GNUNET_SERVER_add_handlers (server, handlers); 456 GNUNET_SERVER_add_handlers (server, handlers);
463 load (server); 457 load (server);