gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r37107 - in gnunet/src: curl include


From: gnunet
Subject: [GNUnet-SVN] r37107 - in gnunet/src: curl include
Date: Mon, 2 May 2016 08:15:26 +0200

Author: grothoff
Date: 2016-05-02 08:15:26 +0200 (Mon, 02 May 2016)
New Revision: 37107

Modified:
   gnunet/src/curl/curl_reschedule.c
   gnunet/src/include/gnunet_curl_lib.h
Log:
fix API design issue

Modified: gnunet/src/curl/curl_reschedule.c
===================================================================
--- gnunet/src/curl/curl_reschedule.c   2016-05-02 06:11:57 UTC (rev 37106)
+++ gnunet/src/curl/curl_reschedule.c   2016-05-02 06:15:26 UTC (rev 37107)
@@ -75,7 +75,7 @@
 /**
  * Task that runs the context's event loop with the GNUnet scheduler.
  *
- * @param cls the `struct GNUNET_CURL_RescheduleContext`
+ * @param cls a `struct GNUNET_CURL_RescheduleContext *`
  */
 static void
 context_task (void *cls)
@@ -133,12 +133,13 @@
  * Note that you MUST immediately destroy the reschedule context after
  * calling #GNUNET_CURL_fini().
  *
- * @param cls must point to a `struct GNUNET_CURL_RescheduleContext`
+ * @param cls must point to a `struct GNUNET_CURL_RescheduleContext *`
+ *           (pointer to a pointer!)
  */
 void
 GNUNET_CURL_gnunet_scheduler_reschedule (void *cls)
 {
-  struct GNUNET_CURL_RescheduleContext *rc = cls;
+  struct GNUNET_CURL_RescheduleContext *rc = *(void**) cls;
 
   if (NULL != rc->task)
     GNUNET_SCHEDULER_cancel (rc->task);

Modified: gnunet/src/include/gnunet_curl_lib.h
===================================================================
--- gnunet/src/include/gnunet_curl_lib.h        2016-05-02 06:11:57 UTC (rev 
37106)
+++ gnunet/src/include/gnunet_curl_lib.h        2016-05-02 06:15:26 UTC (rev 
37107)
@@ -204,7 +204,8 @@
  * Note that you MUST immediately destroy the reschedule context after
  * calling #GNUNET_CURL_fini().
  *
- * @param cls must point to a `struct GNUNET_CURL_RescheduleContext`
+ * @param cls must point to a `struct GNUNET_CURL_RescheduleContext *`
+ *           (pointer to a pointer!)
  */
 void
 GNUNET_CURL_gnunet_scheduler_reschedule (void *cls);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]