summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-17 17:58:05 +0100
committerChristian Grothoff <christian@grothoff.org>2017-03-17 17:58:05 +0100
commitd624b9595e7174ec95a44b3e1cea817402d30f0b (patch)
tree9cb4e2be429f103743b3ecca94db173c9ecca001 /src
parenta11fe354cb23c7b39f2ce408d672ecfae8b92b0f (diff)
fix FTBFS of test
Diffstat (limited to 'src')
-rw-r--r--src/cadet/test_cadet.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cadet/test_cadet.c b/src/cadet/test_cadet.c
index a7304c3ee..8963d97c9 100644
--- a/src/cadet/test_cadet.c
+++ b/src/cadet/test_cadet.c
@@ -948,6 +948,7 @@ tmain (void *cls,
int
main (int argc, char *argv[])
{
+ static const struct GNUNET_HashCode *ports[2];
struct GNUNET_MQ_MessageHandler handlers[] = {
GNUNET_MQ_hd_var_size (data,
GNUNET_MESSAGE_TYPE_DUMMY,
@@ -955,13 +956,9 @@ main (int argc, char *argv[])
NULL),
GNUNET_MQ_handler_end ()
};
-
- initialized = GNUNET_NO;
- static const struct GNUNET_HashCode *ports[2];
const char *config_file;
char port_id[] = "test port";
-
- static const struct GNUNET_GETOPT_CommandLineOption options[] = {
+ struct GNUNET_GETOPT_CommandLineOption options[] = {
GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('t',
"time",
"short_time",
@@ -977,6 +974,8 @@ main (int argc, char *argv[])
GNUNET_GETOPT_OPTION_END
};
+
+ initialized = GNUNET_NO;
GNUNET_log_setup ("test", "DEBUG", NULL);
total_packets = TOTAL_PACKETS;