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_monitoring.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_monitoring.c')
-rw-r--r-- | src/namestore/test_namestore_api_monitoring.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/namestore/test_namestore_api_monitoring.c b/src/namestore/test_namestore_api_monitoring.c index 85d1659b4..2ea271d50 100644 --- a/src/namestore/test_namestore_api_monitoring.c +++ b/src/namestore/test_namestore_api_monitoring.c | |||
@@ -126,10 +126,9 @@ do_shutdown () | |||
126 | * Re-establish the connection to the service. | 126 | * Re-establish the connection to the service. |
127 | * | 127 | * |
128 | * @param cls handle to use to re-connect. | 128 | * @param cls handle to use to re-connect. |
129 | * @param tc scheduler context | ||
130 | */ | 129 | */ |
131 | static void | 130 | static void |
132 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 131 | endbadly (void *cls) |
133 | { | 132 | { |
134 | do_shutdown (); | 133 | do_shutdown (); |
135 | res = 1; | 134 | res = 1; |
@@ -137,7 +136,7 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
137 | 136 | ||
138 | 137 | ||
139 | static void | 138 | static void |
140 | end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 139 | end (void *cls) |
141 | { | 140 | { |
142 | do_shutdown (); | 141 | do_shutdown (); |
143 | res = 0; | 142 | res = 0; |