aboutsummaryrefslogtreecommitdiff
path: root/src/pt
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-30 08:17:37 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-30 08:17:37 +0000
commit95f9076a2139f5fb042b944a0658b6cda2fa35db (patch)
treeb0826a2a1dcf812e6b4450fe6b05d47cd53ae49d /src/pt
parent7746f68db77b9ca3c4aaca24ab2ce5253461240b (diff)
downloadgnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.tar.gz
gnunet-95f9076a2139f5fb042b944a0658b6cda2fa35db.zip
implementing new scheduler shutdown semantics
Diffstat (limited to 'src/pt')
-rw-r--r--src/pt/gnunet-daemon-pt.c4
-rw-r--r--src/pt/test_gnunet_vpn.c3
2 files changed, 4 insertions, 3 deletions
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
228 /** 228 /**
229 * Task used to abort this operation with timeout. 229 * Task used to abort this operation with timeout.
230 */ 230 */
231 struct GNUNET_SCHEDULER_Task * timeout_task; 231 struct GNUNET_SCHEDULER_Task *timeout_task;
232 232
233 /** 233 /**
234 * Length of the request message that follows this struct. 234 * Length of the request message that follows this struct.
@@ -1244,7 +1244,7 @@ run (void *cls, char *const *args GNUNET_UNUSED,
1244 GNUNET_SCHEDULER_shutdown (); 1244 GNUNET_SCHEDULER_shutdown ();
1245 return; 1245 return;
1246 } 1246 }
1247 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &cleanup, cls); 1247 GNUNET_SCHEDULER_add_shutdown (&cleanup, cls);
1248 if (ipv4_pt || ipv6_pt) 1248 if (ipv4_pt || ipv6_pt)
1249 { 1249 {
1250 dns_post_handle 1250 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 ()
354 354
355 355
356static void 356static void
357run (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg, 357run (void *cls,
358 const struct GNUNET_CONFIGURATION_Handle *cfg,
358 struct GNUNET_TESTING_Peer *peer) 359 struct GNUNET_TESTING_Peer *peer)
359{ 360{
360 struct in_addr v4; 361 struct in_addr v4;