make clang static analysis happy
[oweals/gnunet.git] / src / fs / test_fs_start_stop.c
index eac14b070c6fd0c1be37adb2e1805590676cb328..e11684b70b8fdb03dbf78faad112ce0357f0bcca 100644 (file)
@@ -57,13 +57,12 @@ setup_peer (struct PeerContext *p, const char *cfgname)
 {
   p->cfg = GNUNET_CONFIGURATION_create ();
 #if START_ARM
-  p->arm_pid = GNUNET_OS_start_process ("gnunet-service-arm",
+  p->arm_pid = GNUNET_OS_start_process (NULL, NULL, "gnunet-service-arm",
                                         "gnunet-service-arm",
 #if VERBOSE
                                         "-L", "DEBUG",
 #endif
                                         "-c", cfgname, NULL);
-  sleep (1);                    /* allow ARM to start */
 #endif
   GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname));
   GNUNET_ARM_start_services (p->cfg, sched, "core", NULL);
@@ -104,6 +103,7 @@ run (void *cls,
                        GNUNET_FS_FLAGS_NONE,
                        GNUNET_FS_OPTIONS_END);
   GNUNET_assert (NULL != fs); 
+  sleep (1); /* FIXME */
   GNUNET_FS_stop (fs);
 }