aboutsummaryrefslogtreecommitdiff
path: root/src/curl
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-02 06:15:26 +0000
committerChristian Grothoff <christian@grothoff.org>2016-05-02 06:15:26 +0000
commit4a255059678c8a73a453f9276de217b7cfd384f7 (patch)
tree59bed358acc721f255bba6e9902bfbcb17c95218 /src/curl
parentbc1676b599937cd37d5fd625362ceea6f78fa42a (diff)
downloadgnunet-4a255059678c8a73a453f9276de217b7cfd384f7.tar.gz
gnunet-4a255059678c8a73a453f9276de217b7cfd384f7.zip
fix API design issue
Diffstat (limited to 'src/curl')
-rw-r--r--src/curl/curl_reschedule.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/curl/curl_reschedule.c b/src/curl/curl_reschedule.c
index 3e6c887f3..fab66765e 100644
--- a/src/curl/curl_reschedule.c
+++ b/src/curl/curl_reschedule.c
@@ -75,7 +75,7 @@ GNUNET_CURL_gnunet_rc_destroy (struct GNUNET_CURL_RescheduleContext *rc)
75/** 75/**
76 * Task that runs the context's event loop with the GNUnet scheduler. 76 * Task that runs the context's event loop with the GNUnet scheduler.
77 * 77 *
78 * @param cls the `struct GNUNET_CURL_RescheduleContext` 78 * @param cls a `struct GNUNET_CURL_RescheduleContext *`
79 */ 79 */
80static void 80static void
81context_task (void *cls) 81context_task (void *cls)
@@ -133,12 +133,13 @@ context_task (void *cls)
133 * Note that you MUST immediately destroy the reschedule context after 133 * Note that you MUST immediately destroy the reschedule context after
134 * calling #GNUNET_CURL_fini(). 134 * calling #GNUNET_CURL_fini().
135 * 135 *
136 * @param cls must point to a `struct GNUNET_CURL_RescheduleContext` 136 * @param cls must point to a `struct GNUNET_CURL_RescheduleContext *`
137 * (pointer to a pointer!)
137 */ 138 */
138void 139void
139GNUNET_CURL_gnunet_scheduler_reschedule (void *cls) 140GNUNET_CURL_gnunet_scheduler_reschedule (void *cls)
140{ 141{
141 struct GNUNET_CURL_RescheduleContext *rc = cls; 142 struct GNUNET_CURL_RescheduleContext *rc = *(void**) cls;
142 143
143 if (NULL != rc->task) 144 if (NULL != rc->task)
144 GNUNET_SCHEDULER_cancel (rc->task); 145 GNUNET_SCHEDULER_cancel (rc->task);