Use statement exprs instead of local function
[oweals/gnunet.git] / src / gns / gnunet-gns-import.c
index 5f94e779203ffb2c091cccd1397fa3b31cbc3faa..e98babfa8a4fda2bea31730afa468be0b979da80 100644 (file)
@@ -454,8 +454,7 @@ run (void *cls, char *const *args, const char *cfgfile,
 
   ns = GNUNET_NAMESTORE_connect (cfg);
   sh = GNUNET_IDENTITY_connect (cfg, &get_ego, NULL);
-  GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
-                               &shutdown_task, NULL);
+  GNUNET_SCHEDULER_add_shutdown (&shutdown_task, NULL);
 }