aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-dht-put.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/dht/gnunet-dht-put.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/dht/gnunet-dht-put.c')
-rw-r--r--src/dht/gnunet-dht-put.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dht/gnunet-dht-put.c b/src/dht/gnunet-dht-put.c
index c58311876..19e385be1 100644
--- a/src/dht/gnunet-dht-put.c
+++ b/src/dht/gnunet-dht-put.c
@@ -87,8 +87,9 @@ static int ret;
87 */ 87 */
88static char *data; 88static char *data;
89 89
90
90static void 91static void
91shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 92shutdown_task (void *cls)
92{ 93{
93 if (NULL != dht_handle) 94 if (NULL != dht_handle)
94 { 95 {
@@ -101,9 +102,9 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
101 * Signature of the main function of a task. 102 * Signature of the main function of a task.
102 * 103 *
103 * @param cls closure 104 * @param cls closure
104 * @param success GNUNET_OK if the PUT was transmitted, 105 * @param success #GNUNET_OK if the PUT was transmitted,
105 * GNUNET_NO on timeout, 106 * #GNUNET_NO on timeout,
106 * GNUNET_SYSERR on disconnect from service 107 * #GNUNET_SYSERR on disconnect from service
107 * after the PUT message was transmitted 108 * after the PUT message was transmitted
108 * (so we don't know if it was received or not) 109 * (so we don't know if it was received or not)
109 */ 110 */