diff options
Diffstat (limited to 'src/util/test_service.c')
-rw-r--r-- | src/util/test_service.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/util/test_service.c b/src/util/test_service.c index 037f6edf7..93cafb4d2 100644 --- a/src/util/test_service.c +++ b/src/util/test_service.c | |||
@@ -86,8 +86,7 @@ ready (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
86 | GNUNET_CLIENT_notify_transmit_ready (client, | 86 | GNUNET_CLIENT_notify_transmit_ready (client, |
87 | sizeof (struct GNUNET_MessageHeader), | 87 | sizeof (struct GNUNET_MessageHeader), |
88 | GNUNET_TIME_UNIT_SECONDS, | 88 | GNUNET_TIME_UNIT_SECONDS, |
89 | GNUNET_NO, | 89 | GNUNET_NO, &build_msg, client); |
90 | &build_msg, client); | ||
91 | } | 90 | } |
92 | 91 | ||
93 | static void | 92 | static void |
@@ -114,12 +113,12 @@ runner (void *cls, | |||
114 | GNUNET_SERVER_add_handlers (server, myhandlers); | 113 | GNUNET_SERVER_add_handlers (server, myhandlers); |
115 | GNUNET_CLIENT_service_test (sched, | 114 | GNUNET_CLIENT_service_test (sched, |
116 | "test_service", | 115 | "test_service", |
117 | cfg, GNUNET_TIME_UNIT_SECONDS, &ready, (void*) cfg); | 116 | cfg, GNUNET_TIME_UNIT_SECONDS, &ready, |
117 | (void *) cfg); | ||
118 | } | 118 | } |
119 | 119 | ||
120 | static void | 120 | static void |
121 | term (void *cls, | 121 | term (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg) |
122 | const struct GNUNET_CONFIGURATION_Handle *cfg) | ||
123 | { | 122 | { |
124 | int *ok = cls; | 123 | int *ok = cls; |
125 | *ok = 0; | 124 | *ok = 0; |
@@ -170,8 +169,7 @@ ready6 (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
170 | GNUNET_CLIENT_notify_transmit_ready (client, | 169 | GNUNET_CLIENT_notify_transmit_ready (client, |
171 | sizeof (struct GNUNET_MessageHeader), | 170 | sizeof (struct GNUNET_MessageHeader), |
172 | GNUNET_TIME_UNIT_SECONDS, | 171 | GNUNET_TIME_UNIT_SECONDS, |
173 | GNUNET_NO, | 172 | GNUNET_NO, &build_msg, client); |
174 | &build_msg, client); | ||
175 | } | 173 | } |
176 | 174 | ||
177 | static void | 175 | static void |
@@ -184,7 +182,8 @@ runner6 (void *cls, | |||
184 | GNUNET_SERVER_add_handlers (server, myhandlers); | 182 | GNUNET_SERVER_add_handlers (server, myhandlers); |
185 | GNUNET_CLIENT_service_test (sched, | 183 | GNUNET_CLIENT_service_test (sched, |
186 | "test_service6", | 184 | "test_service6", |
187 | cfg, GNUNET_TIME_UNIT_SECONDS, &ready6, (void*) cfg); | 185 | cfg, GNUNET_TIME_UNIT_SECONDS, &ready6, |
186 | (void *) cfg); | ||
188 | } | 187 | } |
189 | 188 | ||
190 | /** | 189 | /** |
@@ -254,8 +253,8 @@ static void | |||
254 | start_stop_main (void *cls, | 253 | start_stop_main (void *cls, |
255 | struct GNUNET_SCHEDULER_Handle *sched, | 254 | struct GNUNET_SCHEDULER_Handle *sched, |
256 | char *const *args, | 255 | char *const *args, |
257 | const char *cfgfile, | 256 | const char *cfgfile, |
258 | const struct GNUNET_CONFIGURATION_Handle *cfg) | 257 | const struct GNUNET_CONFIGURATION_Handle *cfg) |
259 | { | 258 | { |
260 | int *ret = cls; | 259 | int *ret = cls; |
261 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 260 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |