From bb325e4a419aa2ec5ddff34b45a49dcaaa53d0ab Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 27 Sep 2012 14:06:37 +0000 Subject: -some fixes for monkey --- src/core/gnunet-core.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/core') diff --git a/src/core/gnunet-core.c b/src/core/gnunet-core.c index 571a2a53dc..17b840480d 100644 --- a/src/core/gnunet-core.c +++ b/src/core/gnunet-core.c @@ -166,6 +166,9 @@ static void run (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) { + static const struct GNUNET_CORE_MessageHandler handlers[] = { + {NULL, 0, 0} + }; if (args[0] != NULL) { FPRINTF (stderr, _("Invalid command line argument `%s'\n"), args[0]); @@ -175,12 +178,7 @@ run (void *cls, char *const *args, const char *cfgfile, GNUNET_CORE_iterate_peers (cfg, &connected_peer_callback, NULL); else { - const static struct GNUNET_CORE_MessageHandler handlers[] = { - {NULL, 0, 0} - }; - memset(&my_id, '\0', sizeof (my_id)); - ch = GNUNET_CORE_connect (cfg, NULL, monitor_notify_startup, monitor_notify_connect, -- cgit v1.2.3-18-g5258