diff options
-rw-r--r-- | src/curl/curl_reschedule.c | 7 | ||||
-rw-r--r-- | src/include/gnunet_curl_lib.h | 3 |
2 files changed, 6 insertions, 4 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 | */ |
80 | static void | 80 | static void |
81 | context_task (void *cls) | 81 | context_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 | */ |
138 | void | 139 | void |
139 | GNUNET_CURL_gnunet_scheduler_reschedule (void *cls) | 140 | GNUNET_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); |
diff --git a/src/include/gnunet_curl_lib.h b/src/include/gnunet_curl_lib.h index 500434d82..2b13ee3d9 100644 --- a/src/include/gnunet_curl_lib.h +++ b/src/include/gnunet_curl_lib.h | |||
@@ -204,7 +204,8 @@ GNUNET_CURL_gnunet_rc_destroy (struct GNUNET_CURL_RescheduleContext *rc); | |||
204 | * Note that you MUST immediately destroy the reschedule context after | 204 | * Note that you MUST immediately destroy the reschedule context after |
205 | * calling #GNUNET_CURL_fini(). | 205 | * calling #GNUNET_CURL_fini(). |
206 | * | 206 | * |
207 | * @param cls must point to a `struct GNUNET_CURL_RescheduleContext` | 207 | * @param cls must point to a `struct GNUNET_CURL_RescheduleContext *` |
208 | * (pointer to a pointer!) | ||
208 | */ | 209 | */ |
209 | void | 210 | void |
210 | GNUNET_CURL_gnunet_scheduler_reschedule (void *cls); | 211 | GNUNET_CURL_gnunet_scheduler_reschedule (void *cls); |