aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-09-27 14:06:37 +0000
committerChristian Grothoff <christian@grothoff.org>2012-09-27 14:06:37 +0000
commitbb325e4a419aa2ec5ddff34b45a49dcaaa53d0ab (patch)
tree3056b04d5e1ba0e316ee3f9ceeb8cd76133cde13 /src/core
parent0132ed3cba1026781772b98c737048311b510977 (diff)
-some fixes for monkey
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gnunet-core.c8
1 files changed, 3 insertions, 5 deletions
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,