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/util/test_connection_receive_cancel.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/util/test_connection_receive_cancel.c')
-rw-r--r-- | src/util/test_connection_receive_cancel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/test_connection_receive_cancel.c b/src/util/test_connection_receive_cancel.c index 73a041bdf..9ec96d8a6 100644 --- a/src/util/test_connection_receive_cancel.c +++ b/src/util/test_connection_receive_cancel.c | |||
@@ -79,7 +79,7 @@ dead_receive (void *cls, const void *buf, size_t available, | |||
79 | 79 | ||
80 | 80 | ||
81 | static void | 81 | static void |
82 | run_accept_cancel (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 82 | run_accept_cancel (void *cls) |
83 | { | 83 | { |
84 | asock = GNUNET_CONNECTION_create_from_accept (NULL, NULL, ls); | 84 | asock = GNUNET_CONNECTION_create_from_accept (NULL, NULL, ls); |
85 | GNUNET_assert (asock != NULL); | 85 | GNUNET_assert (asock != NULL); |
@@ -92,7 +92,7 @@ run_accept_cancel (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
92 | 92 | ||
93 | 93 | ||
94 | static void | 94 | static void |
95 | receive_cancel_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 95 | receive_cancel_task (void *cls) |
96 | { | 96 | { |
97 | int *ok = cls; | 97 | int *ok = cls; |
98 | 98 | ||
@@ -105,7 +105,7 @@ receive_cancel_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
105 | 105 | ||
106 | 106 | ||
107 | static void | 107 | static void |
108 | task_receive_cancel (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 108 | task_receive_cancel (void *cls) |
109 | { | 109 | { |
110 | ls = open_listen_socket (); | 110 | ls = open_listen_socket (); |
111 | lsock = GNUNET_CONNECTION_create_from_existing (ls); | 111 | lsock = GNUNET_CONNECTION_create_from_existing (ls); |