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/testing/test_testing_peerstartup2.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/testing/test_testing_peerstartup2.c')
-rw-r--r-- | src/testing/test_testing_peerstartup2.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/testing/test_testing_peerstartup2.c b/src/testing/test_testing_peerstartup2.c index edbd24df0..fd46e5c3e 100644 --- a/src/testing/test_testing_peerstartup2.c +++ b/src/testing/test_testing_peerstartup2.c | |||
@@ -83,7 +83,7 @@ struct TestingContext | |||
83 | 83 | ||
84 | 84 | ||
85 | static void | 85 | static void |
86 | do_shutdown2 (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 86 | do_shutdown2 (void *cls) |
87 | { | 87 | { |
88 | struct TestingContext *test_ctx = cls; | 88 | struct TestingContext *test_ctx = cls; |
89 | 89 | ||
@@ -102,10 +102,9 @@ do_shutdown2 (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
102 | * Task for shutdown | 102 | * Task for shutdown |
103 | * | 103 | * |
104 | * @param cls the testing context | 104 | * @param cls the testing context |
105 | * @param tc the tast context | ||
106 | */ | 105 | */ |
107 | static void | 106 | static void |
108 | do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc); | 107 | do_shutdown (void *cls); |
109 | 108 | ||
110 | 109 | ||
111 | static void | 110 | static void |
@@ -133,10 +132,9 @@ peer_status_cb (void *cls, struct GNUNET_TESTING_Peer *peer, int success) | |||
133 | * Task for shutdown | 132 | * Task for shutdown |
134 | * | 133 | * |
135 | * @param cls the testing context | 134 | * @param cls the testing context |
136 | * @param tc the tast context | ||
137 | */ | 135 | */ |
138 | static void | 136 | static void |
139 | do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 137 | do_shutdown (void *cls) |
140 | { | 138 | { |
141 | struct TestingContext *test_ctx = cls; | 139 | struct TestingContext *test_ctx = cls; |
142 | 140 | ||
@@ -149,7 +147,7 @@ do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
149 | test_ctx)); | 147 | test_ctx)); |
150 | } | 148 | } |
151 | else | 149 | else |
152 | do_shutdown2 (test_ctx, tc); | 150 | do_shutdown2 (test_ctx); |
153 | } | 151 | } |
154 | 152 | ||
155 | 153 | ||