dead code elimination
[oweals/gnunet.git] / src / core / gnunet-core.c
index c70d49bb724205099394fea9e096d27481e38b36..d91dc304d5c1b88152b44f994e958f9d221f9fea 100644 (file)
@@ -44,11 +44,9 @@ static struct GNUNET_CORE_MonitorHandle *mh;
  * Stops monitoring activity.
  *
  * @param cls NULL
- * @param tc scheduler context
  */
 static void
-shutdown_task (void *cls,
-               const struct GNUNET_SCHEDULER_TaskContext *tc)
+shutdown_task (void *cls)
 {
   if (NULL != mh)
   {
@@ -157,8 +155,7 @@ run (void *cls, char *const *args, const char *cfgfile,
              _("Failed to connect to CORE service!\n"));
     return;
   }
-  GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
-                                &shutdown_task, NULL);
+  GNUNET_SCHEDULER_add_shutdown (&shutdown_task, NULL);
 }