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/psycstore/test_psycstore.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/psycstore/test_psycstore.c')
-rw-r--r-- | src/psycstore/test_psycstore.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/psycstore/test_psycstore.c b/src/psycstore/test_psycstore.c index b0ae3b924..266ee5c1d 100644 --- a/src/psycstore/test_psycstore.c +++ b/src/psycstore/test_psycstore.c | |||
@@ -113,10 +113,9 @@ cleanup () | |||
113 | * Terminate the testcase (failure). | 113 | * Terminate the testcase (failure). |
114 | * | 114 | * |
115 | * @param cls NULL | 115 | * @param cls NULL |
116 | * @param tc scheduler context | ||
117 | */ | 116 | */ |
118 | static void | 117 | static void |
119 | end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 118 | end_badly (void *cls) |
120 | { | 119 | { |
121 | res = 1; | 120 | res = 1; |
122 | cleanup (); | 121 | cleanup (); |
@@ -127,10 +126,9 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
127 | * Terminate the testcase (success). | 126 | * Terminate the testcase (success). |
128 | * | 127 | * |
129 | * @param cls NULL | 128 | * @param cls NULL |
130 | * @param tc scheduler context | ||
131 | */ | 129 | */ |
132 | static void | 130 | static void |
133 | end_normally (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 131 | end_normally (void *cls) |
134 | { | 132 | { |
135 | res = 0; | 133 | res = 0; |
136 | cleanup (); | 134 | cleanup (); |