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_lookup_shadow.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_lookup_shadow.c')
-rw-r--r-- | src/namestore/test_namestore_api_lookup_shadow.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_lookup_shadow.c b/src/namestore/test_namestore_api_lookup_shadow.c index b7f89c0ff..7f9a90704 100644 --- a/src/namestore/test_namestore_api_lookup_shadow.c +++ b/src/namestore/test_namestore_api_lookup_shadow.c | |||
@@ -81,10 +81,9 @@ cleanup () | |||
81 | * Re-establish the connection to the service. | 81 | * Re-establish the connection to the service. |
82 | * | 82 | * |
83 | * @param cls handle to use to re-connect. | 83 | * @param cls handle to use to re-connect. |
84 | * @param tc scheduler context | ||
85 | */ | 84 | */ |
86 | static void | 85 | static void |
87 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 86 | endbadly (void *cls) |
88 | { | 87 | { |
89 | if (NULL != nsqe) | 88 | if (NULL != nsqe) |
90 | { | 89 | { |
@@ -102,7 +101,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
102 | 101 | ||
103 | 102 | ||
104 | static void | 103 | static void |
105 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 104 | end (void *cls) |
106 | { | 105 | { |
107 | cleanup (); | 106 | cleanup (); |
108 | res = 0; | 107 | res = 0; |