Verify that GCD(m,n) != 1 when n is an RSA modulus
[oweals/gnunet.git] / src / dns / gnunet-dns-redirector.c
index daf74bf1885ce38cd665b3779cd4f033168babc7..89929815a2e9467cbc03af0ca544211f43322e17 100644 (file)
@@ -177,7 +177,7 @@ modify_request (void *cls,
  * Shutdown.
  */
 static void
-do_disconnect (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
+do_disconnect (void *cls)
 {
   if (NULL != handle)
   {
@@ -223,8 +223,7 @@ run (void *cls, char *const *args, const char *cfgfile,
                        GNUNET_DNS_FLAG_POST_RESOLUTION,
                        &modify_request,
                        NULL);
-  GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
-                               &do_disconnect, NULL);
+  GNUNET_SCHEDULER_add_shutdown (&do_disconnect, NULL);
 }