removing dead code / unused variables
[oweals/gnunet.git] / src / core / test_core_api_start_only.c
index dc4bfea98549448fc61817ad443438a59acd9164..c3ea8559321c124a3ddcb1bb64a0566ec915db2b 100644 (file)
@@ -71,17 +71,14 @@ static int ok;
 
 static void
 connect_notify (void *cls,
-                const struct GNUNET_PeerIdentity *peer,
-                unsigned int bpm, struct GNUNET_TIME_Absolute last_activity)
+                const struct GNUNET_PeerIdentity *peer)
 {
 }
 
 
 static void
 disconnect_notify (void *cls,
-                   const struct GNUNET_PeerIdentity *peer,
-                   unsigned int bpm,
-                   struct GNUNET_TIME_Absolute last_activity)
+                   const struct GNUNET_PeerIdentity *peer)
 {
 }
 
@@ -205,7 +202,7 @@ stop_arm (struct PeerContext *p)
 #if START_ARM
   if (0 != PLIBC_KILL (p->arm_pid, SIGTERM))
     GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill");
-  if (p->arm_pid != waitpid (p->arm_pid, NULL, 0))
+  if (GNUNET_OS_process_wait(p->arm_pid) != GNUNET_OK)
     GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "waitpid");
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "ARM process %u stopped\n", p->arm_pid);