aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_cmd_start_peer_v3.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-10-06 09:34:19 +0200
committerChristian Grothoff <christian@grothoff.org>2021-10-06 09:34:19 +0200
commitffa7a0ab292b190ed10cd54645593fe31c5796bc (patch)
tree030328c2b46531e8b4bae878f173c96fb7dd3e80 /src/transport/transport_api_cmd_start_peer_v3.c
parent961685fab53555a7b62301982927432988b8fdc2 (diff)
downloadgnunet-ffa7a0ab292b190ed10cd54645593fe31c5796bc.tar.gz
gnunet-ffa7a0ab292b190ed10cd54645593fe31c5796bc.zip
-fix FTBFS
Diffstat (limited to 'src/transport/transport_api_cmd_start_peer_v3.c')
-rw-r--r--src/transport/transport_api_cmd_start_peer_v3.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/transport/transport_api_cmd_start_peer_v3.c b/src/transport/transport_api_cmd_start_peer_v3.c
index b5cefecc8..fa6300ef5 100644
--- a/src/transport/transport_api_cmd_start_peer_v3.c
+++ b/src/transport/transport_api_cmd_start_peer_v3.c
@@ -175,7 +175,6 @@ notify_connect (void *cls,
175 */ 175 */
176static void 176static void
177start_peer_run (void *cls, 177start_peer_run (void *cls,
178 const struct GNUNET_TESTING_Command *cmd,
179 struct GNUNET_TESTING_Interpreter *is) 178 struct GNUNET_TESTING_Interpreter *is)
180{ 179{
181 struct StartPeerState_v2 *sps = cls; 180 struct StartPeerState_v2 *sps = cls;
@@ -194,7 +193,7 @@ start_peer_run (void *cls,
194 LOG (GNUNET_ERROR_TYPE_ERROR, 193 LOG (GNUNET_ERROR_TYPE_ERROR,
195 "File not found: `%s'\n", 194 "File not found: `%s'\n",
196 sps->cfgname); 195 sps->cfgname);
197 GNUNET_TESTING_interpreter_fail (); 196 GNUNET_TESTING_interpreter_fail (is);
198 return; 197 return;
199 } 198 }
200 199
@@ -244,7 +243,8 @@ start_peer_run (void *cls,
244 "UNIXPATH", 243 "UNIXPATH",
245 udp_communicator_unix_path); 244 udp_communicator_unix_path);
246 245
247 system_cmd = GNUNET_TESTING_interpreter_lookup_command (sps->system_label); 246 system_cmd = GNUNET_TESTING_interpreter_lookup_command (is,
247 sps->system_label);
248 GNUNET_TESTING_get_trait_test_system (system_cmd, 248 GNUNET_TESTING_get_trait_test_system (system_cmd,
249 &tl_system); 249 &tl_system);
250 250
@@ -258,7 +258,7 @@ start_peer_run (void *cls,
258 "Testing library failed to create unique configuration based on `%s'\n", 258 "Testing library failed to create unique configuration based on `%s'\n",
259 sps->cfgname); 259 sps->cfgname);
260 GNUNET_CONFIGURATION_destroy (sps->cfg); 260 GNUNET_CONFIGURATION_destroy (sps->cfg);
261 GNUNET_TESTING_interpreter_fail (); 261 GNUNET_TESTING_interpreter_fail (is);
262 return; 262 return;
263 } 263 }
264 264
@@ -274,7 +274,7 @@ start_peer_run (void *cls,
274 sps->cfgname, 274 sps->cfgname,
275 emsg); 275 emsg);
276 GNUNET_free (emsg); 276 GNUNET_free (emsg);
277 GNUNET_TESTING_interpreter_fail (); 277 GNUNET_TESTING_interpreter_fail (is);
278 return; 278 return;
279 } 279 }
280 280
@@ -284,7 +284,7 @@ start_peer_run (void *cls,
284 "Testing library failed to create unique configuration based on `%s'\n", 284 "Testing library failed to create unique configuration based on `%s'\n",
285 sps->cfgname); 285 sps->cfgname);
286 GNUNET_free (emsg); 286 GNUNET_free (emsg);
287 GNUNET_TESTING_interpreter_fail (); 287 GNUNET_TESTING_interpreter_fail (is);
288 return; 288 return;
289 } 289 }
290 290
@@ -303,7 +303,7 @@ start_peer_run (void *cls,
303 "Testing library failed to obtain peer identity for peer %u\n", 303 "Testing library failed to obtain peer identity for peer %u\n",
304 sps->no); 304 sps->no);
305 GNUNET_free (emsg); 305 GNUNET_free (emsg);
306 GNUNET_TESTING_interpreter_fail (); 306 GNUNET_TESTING_interpreter_fail (is);
307 return; 307 return;
308 } 308 }
309 LOG (GNUNET_ERROR_TYPE_DEBUG, 309 LOG (GNUNET_ERROR_TYPE_DEBUG,
@@ -324,7 +324,7 @@ start_peer_run (void *cls,
324 sps->cfgname, 324 sps->cfgname,
325 emsg); 325 emsg);
326 GNUNET_free (emsg); 326 GNUNET_free (emsg);
327 GNUNET_TESTING_interpreter_fail (); 327 GNUNET_TESTING_interpreter_fail (is);
328 return; 328 return;
329 } 329 }
330 330
@@ -336,7 +336,7 @@ start_peer_run (void *cls,
336 sps->cfgname, 336 sps->cfgname,
337 emsg); 337 emsg);
338 GNUNET_free (emsg); 338 GNUNET_free (emsg);
339 GNUNET_TESTING_interpreter_fail (); 339 GNUNET_TESTING_interpreter_fail (is);
340 return; 340 return;
341 } 341 }
342 342
@@ -348,7 +348,7 @@ start_peer_run (void *cls,
348 sps->cfgname, 348 sps->cfgname,
349 emsg); 349 emsg);
350 GNUNET_free (emsg); 350 GNUNET_free (emsg);
351 GNUNET_TESTING_interpreter_fail (); 351 GNUNET_TESTING_interpreter_fail (is);
352 return; 352 return;
353 } 353 }
354 sps->rh_task = GNUNET_SCHEDULER_add_now (retrieve_hello, sps); 354 sps->rh_task = GNUNET_SCHEDULER_add_now (retrieve_hello, sps);
@@ -360,8 +360,7 @@ start_peer_run (void *cls,
360 * 360 *
361 */ 361 */
362static void 362static void
363start_peer_cleanup (void *cls, 363start_peer_cleanup (void *cls)
364 const struct GNUNET_TESTING_Command *cmd)
365{ 364{
366 struct StartPeerState_v2 *sps = cls; 365 struct StartPeerState_v2 *sps = cls;
367 366