aboutsummaryrefslogtreecommitdiff
path: root/src/revocation/test_revocation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
committerChristian Grothoff <christian@grothoff.org>2016-04-09 23:14:03 +0000
commit29e6158507a0758192075ac6ece7ba8e75ddc49a (patch)
treeb91ded48da322f8ba4c9bb0f5504228aa036c2d1 /src/revocation/test_revocation.c
parent5dfcb058ab5db9ae0c4b147d8a99c64ca0980028 (diff)
downloadgnunet-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.c11
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
59static void 59static void
60do_shutdown (void *cls, 60do_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
96static void 95static void
97check_revocation (void *cls, 96check_revocation (void *cls);
98 const struct GNUNET_SCHEDULER_TaskContext *tc);
99 97
100 98
101static void 99static void
@@ -128,8 +126,7 @@ revocation_remote_cb (void *cls,
128 126
129 127
130static void 128static void
131check_revocation (void *cls, 129check_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