From 95f9076a2139f5fb042b944a0658b6cda2fa35db Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 30 Apr 2016 08:17:37 +0000 Subject: implementing new scheduler shutdown semantics --- src/pt/gnunet-daemon-pt.c | 4 ++-- src/pt/test_gnunet_vpn.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/pt') diff --git a/src/pt/gnunet-daemon-pt.c b/src/pt/gnunet-daemon-pt.c index a86cbd316..02c0df3cc 100644 --- a/src/pt/gnunet-daemon-pt.c +++ b/src/pt/gnunet-daemon-pt.c @@ -228,7 +228,7 @@ struct RequestContext /** * Task used to abort this operation with timeout. */ - struct GNUNET_SCHEDULER_Task * timeout_task; + struct GNUNET_SCHEDULER_Task *timeout_task; /** * Length of the request message that follows this struct. @@ -1244,7 +1244,7 @@ run (void *cls, char *const *args GNUNET_UNUSED, GNUNET_SCHEDULER_shutdown (); return; } - GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleanup, cls); + GNUNET_SCHEDULER_add_shutdown (&cleanup, cls); if (ipv4_pt || ipv6_pt) { dns_post_handle diff --git a/src/pt/test_gnunet_vpn.c b/src/pt/test_gnunet_vpn.c index 85b28fbf8..df87da30a 100644 --- a/src/pt/test_gnunet_vpn.c +++ b/src/pt/test_gnunet_vpn.c @@ -354,7 +354,8 @@ mhd_main () static void -run (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg, +run (void *cls, + const struct GNUNET_CONFIGURATION_Handle *cfg, struct GNUNET_TESTING_Peer *peer) { struct in_addr v4; -- cgit v1.2.3