diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-27 14:06:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-27 14:06:37 +0000 |
commit | bb325e4a419aa2ec5ddff34b45a49dcaaa53d0ab (patch) | |
tree | 3056b04d5e1ba0e316ee3f9ceeb8cd76133cde13 /src/core/gnunet-core.c | |
parent | 0132ed3cba1026781772b98c737048311b510977 (diff) | |
download | gnunet-bb325e4a419aa2ec5ddff34b45a49dcaaa53d0ab.tar.gz gnunet-bb325e4a419aa2ec5ddff34b45a49dcaaa53d0ab.zip |
-some fixes for monkey
Diffstat (limited to 'src/core/gnunet-core.c')
-rw-r--r-- | src/core/gnunet-core.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/gnunet-core.c b/src/core/gnunet-core.c index 571a2a53d..17b840480 100644 --- a/src/core/gnunet-core.c +++ b/src/core/gnunet-core.c | |||
@@ -166,6 +166,9 @@ static void | |||
166 | run (void *cls, char *const *args, const char *cfgfile, | 166 | run (void *cls, char *const *args, const char *cfgfile, |
167 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 167 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
168 | { | 168 | { |
169 | static const struct GNUNET_CORE_MessageHandler handlers[] = { | ||
170 | {NULL, 0, 0} | ||
171 | }; | ||
169 | if (args[0] != NULL) | 172 | if (args[0] != NULL) |
170 | { | 173 | { |
171 | FPRINTF (stderr, _("Invalid command line argument `%s'\n"), args[0]); | 174 | FPRINTF (stderr, _("Invalid command line argument `%s'\n"), args[0]); |
@@ -175,12 +178,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
175 | GNUNET_CORE_iterate_peers (cfg, &connected_peer_callback, NULL); | 178 | GNUNET_CORE_iterate_peers (cfg, &connected_peer_callback, NULL); |
176 | else | 179 | else |
177 | { | 180 | { |
178 | const static struct GNUNET_CORE_MessageHandler handlers[] = { | ||
179 | {NULL, 0, 0} | ||
180 | }; | ||
181 | |||
182 | memset(&my_id, '\0', sizeof (my_id)); | 181 | memset(&my_id, '\0', sizeof (my_id)); |
183 | |||
184 | ch = GNUNET_CORE_connect (cfg, NULL, | 182 | ch = GNUNET_CORE_connect (cfg, NULL, |
185 | monitor_notify_startup, | 183 | monitor_notify_startup, |
186 | monitor_notify_connect, | 184 | monitor_notify_connect, |