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/identity/test_identity.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/identity/test_identity.c')
-rw-r--r-- | src/identity/test_identity.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/identity/test_identity.c b/src/identity/test_identity.c index 12d182c65..6eaa86e91 100644 --- a/src/identity/test_identity.c +++ b/src/identity/test_identity.c | |||
@@ -77,10 +77,9 @@ cleanup () | |||
77 | * Termiante the testcase (failure). | 77 | * Termiante the testcase (failure). |
78 | * | 78 | * |
79 | * @param cls NULL | 79 | * @param cls NULL |
80 | * @param tc scheduler context | ||
81 | */ | 80 | */ |
82 | static void | 81 | static void |
83 | endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 82 | endbadly (void *cls) |
84 | { | 83 | { |
85 | cleanup (); | 84 | cleanup (); |
86 | res = 1; | 85 | res = 1; |
@@ -91,10 +90,9 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
91 | * Termiante the testcase (success). | 90 | * Termiante the testcase (success). |
92 | * | 91 | * |
93 | * @param cls NULL | 92 | * @param cls NULL |
94 | * @param tc scheduler context | ||
95 | */ | 93 | */ |
96 | static void | 94 | static void |
97 | end_normally (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 95 | end_normally (void *cls) |
98 | { | 96 | { |
99 | cleanup (); | 97 | cleanup (); |
100 | res = 0; | 98 | res = 0; |