diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-09 23:14:03 +0000 |
commit | 29e6158507a0758192075ac6ece7ba8e75ddc49a (patch) | |
tree | b91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/namestore/test_namestore_api_store_update.c | |
parent | 5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff) | |
download | gnunet-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/namestore/test_namestore_api_store_update.c')
-rw-r--r-- | src/namestore/test_namestore_api_store_update.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/namestore/test_namestore_api_store_update.c b/src/namestore/test_namestore_api_store_update.c index 22508b1d3..ed5a399bd 100644 --- a/src/namestore/test_namestore_api_store_update.c +++ b/src/namestore/test_namestore_api_store_update.c | |||
@@ -91,11 +91,9 @@ cleanup () | |||
91 | * Re-establish the connection to the service. | 91 | * Re-establish the connection to the service. |
92 | * | 92 | * |
93 | * @param cls handle to use to re-connect. | 93 | * @param cls handle to use to re-connect. |
94 | * @param tc scheduler context | ||
95 | */ | 94 | */ |
96 | static void | 95 | static void |
97 | endbadly (void *cls, | 96 | endbadly (void *cls) |
98 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
99 | { | 97 | { |
100 | if (NULL != nsqe) | 98 | if (NULL != nsqe) |
101 | { | 99 | { |
@@ -113,8 +111,7 @@ endbadly (void *cls, | |||
113 | 111 | ||
114 | 112 | ||
115 | static void | 113 | static void |
116 | end (void *cls, | 114 | end (void *cls) |
117 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
118 | { | 115 | { |
119 | cleanup (); | 116 | cleanup (); |
120 | res = 0; | 117 | res = 0; |