diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-17 17:58:05 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-17 17:58:05 +0100 |
commit | d624b9595e7174ec95a44b3e1cea817402d30f0b (patch) | |
tree | 9cb4e2be429f103743b3ecca94db173c9ecca001 /src/cadet/test_cadet.c | |
parent | a11fe354cb23c7b39f2ce408d672ecfae8b92b0f (diff) | |
download | gnunet-d624b9595e7174ec95a44b3e1cea817402d30f0b.tar.gz gnunet-d624b9595e7174ec95a44b3e1cea817402d30f0b.zip |
fix FTBFS of test
Diffstat (limited to 'src/cadet/test_cadet.c')
-rw-r--r-- | src/cadet/test_cadet.c | 9 |
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, | |||
948 | int | 948 | int |
949 | main (int argc, char *argv[]) | 949 | main (int argc, char *argv[]) |
950 | { | 950 | { |
951 | static const struct GNUNET_HashCode *ports[2]; | ||
951 | struct GNUNET_MQ_MessageHandler handlers[] = { | 952 | struct GNUNET_MQ_MessageHandler handlers[] = { |
952 | GNUNET_MQ_hd_var_size (data, | 953 | GNUNET_MQ_hd_var_size (data, |
953 | GNUNET_MESSAGE_TYPE_DUMMY, | 954 | GNUNET_MESSAGE_TYPE_DUMMY, |
@@ -955,13 +956,9 @@ main (int argc, char *argv[]) | |||
955 | NULL), | 956 | NULL), |
956 | GNUNET_MQ_handler_end () | 957 | GNUNET_MQ_handler_end () |
957 | }; | 958 | }; |
958 | |||
959 | initialized = GNUNET_NO; | ||
960 | static const struct GNUNET_HashCode *ports[2]; | ||
961 | const char *config_file; | 959 | const char *config_file; |
962 | char port_id[] = "test port"; | 960 | char port_id[] = "test port"; |
963 | 961 | struct GNUNET_GETOPT_CommandLineOption options[] = { | |
964 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | ||
965 | GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('t', | 962 | GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('t', |
966 | "time", | 963 | "time", |
967 | "short_time", | 964 | "short_time", |
@@ -977,6 +974,8 @@ main (int argc, char *argv[]) | |||
977 | GNUNET_GETOPT_OPTION_END | 974 | GNUNET_GETOPT_OPTION_END |
978 | }; | 975 | }; |
979 | 976 | ||
977 | |||
978 | initialized = GNUNET_NO; | ||
980 | GNUNET_log_setup ("test", "DEBUG", NULL); | 979 | GNUNET_log_setup ("test", "DEBUG", NULL); |
981 | 980 | ||
982 | total_packets = TOTAL_PACKETS; | 981 | total_packets = TOTAL_PACKETS; |