aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/vpn_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
commit29e6158507a0758192075ac6ece7ba8e75ddc49a (patch)
treeb91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/vpn/vpn_api.c
parent5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff)
downloadgnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.tar.gz
gnunet-29e6158507a0758192075ac6ece7ba8e75ddc49a.zip
small API change: do no longer pass rarely needed GNUNET_SCHEDULER_TaskContext to all scheduler tasks; instead, allow the relatively few tasks that need it to obtain the context via GNUNET_SCHEDULER_get_task_context()
Diffstat (limited to 'src/vpn/vpn_api.c')
-rw-r--r--src/vpn/vpn_api.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/vpn/vpn_api.c b/src/vpn/vpn_api.c
index 208e56007..f3068f7c2 100644
--- a/src/vpn/vpn_api.c
+++ b/src/vpn/vpn_api.c
@@ -358,12 +358,10 @@ queue_request (struct GNUNET_VPN_RedirectionRequest *rr)
358/** 358/**
359 * Connect to the VPN service and start again to transmit our requests. 359 * Connect to the VPN service and start again to transmit our requests.
360 * 360 *
361 * @param cls the 'struct GNUNET_VPN_Handle *' 361 * @param cls the `struct GNUNET_VPN_Handle *`
362 * @param tc scheduler context
363 */ 362 */
364static void 363static void
365connect_task (void *cls, 364connect_task (void *cls)
366 const struct GNUNET_SCHEDULER_TaskContext *tc)
367{ 365{
368 struct GNUNET_VPN_Handle *vh = cls; 366 struct GNUNET_VPN_Handle *vh = cls;
369 367