aboutsummaryrefslogtreecommitdiff
path: root/src/util/gnunet-service-resolver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/gnunet-service-resolver.c')
-rw-r--r--src/util/gnunet-service-resolver.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/util/gnunet-service-resolver.c b/src/util/gnunet-service-resolver.c
index 59d4c1d97..5739571ae 100644
--- a/src/util/gnunet-service-resolver.c
+++ b/src/util/gnunet-service-resolver.c
@@ -473,16 +473,6 @@ handle_get (void *cls,
473 473
474 474
475/** 475/**
476 * List of handlers for the messages understood by this
477 * service.
478 */
479static struct GNUNET_SERVER_MessageHandler handlers[] = {
480 {&handle_get, NULL, GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST, 0},
481 {NULL, NULL, 0, 0}
482};
483
484
485/**
486 * Process resolver requests. 476 * Process resolver requests.
487 * 477 *
488 * @param cls closure 478 * @param cls closure
@@ -496,6 +486,10 @@ run (void *cls,
496 struct GNUNET_SERVER_Handle *server, 486 struct GNUNET_SERVER_Handle *server,
497 const struct GNUNET_CONFIGURATION_Handle *cfg) 487 const struct GNUNET_CONFIGURATION_Handle *cfg)
498{ 488{
489 static const struct GNUNET_SERVER_MessageHandler handlers[] = {
490 {&handle_get, NULL, GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST, 0},
491 {NULL, NULL, 0, 0}
492 };
499 GNUNET_SERVER_add_handlers (server, handlers); 493 GNUNET_SERVER_add_handlers (server, handlers);
500} 494}
501 495