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/revocation/test_revocation.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/revocation/test_revocation.c')
-rw-r--r-- | src/revocation/test_revocation.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/revocation/test_revocation.c b/src/revocation/test_revocation.c index e9836cc5a..6d6db1b5c 100644 --- a/src/revocation/test_revocation.c +++ b/src/revocation/test_revocation.c | |||
@@ -57,8 +57,7 @@ static int ok; | |||
57 | 57 | ||
58 | 58 | ||
59 | static void | 59 | static void |
60 | do_shutdown (void *cls, | 60 | do_shutdown (void *cls) |
61 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
62 | { | 61 | { |
63 | unsigned int c; | 62 | unsigned int c; |
64 | 63 | ||
@@ -94,8 +93,7 @@ do_shutdown (void *cls, | |||
94 | 93 | ||
95 | 94 | ||
96 | static void | 95 | static void |
97 | check_revocation (void *cls, | 96 | check_revocation (void *cls); |
98 | const struct GNUNET_SCHEDULER_TaskContext *tc); | ||
99 | 97 | ||
100 | 98 | ||
101 | static void | 99 | static void |
@@ -128,8 +126,7 @@ revocation_remote_cb (void *cls, | |||
128 | 126 | ||
129 | 127 | ||
130 | static void | 128 | static void |
131 | check_revocation (void *cls, | 129 | check_revocation (void *cls) |
132 | const struct GNUNET_SCHEDULER_TaskContext *tc) | ||
133 | { | 130 | { |
134 | GNUNET_REVOCATION_query (testpeers[0].cfg, | 131 | GNUNET_REVOCATION_query (testpeers[0].cfg, |
135 | &testpeers[1].pubkey, | 132 | &testpeers[1].pubkey, |
@@ -146,7 +143,7 @@ revocation_cb (void *cls, | |||
146 | { | 143 | { |
147 | fprintf (stderr, | 144 | fprintf (stderr, |
148 | "Revocation successful\n"); | 145 | "Revocation successful\n"); |
149 | check_revocation (NULL, NULL); | 146 | check_revocation (NULL); |
150 | } | 147 | } |
151 | } | 148 | } |
152 | 149 | ||