aboutsummaryrefslogtreecommitdiff
path: root/src/arm/arm_api.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/arm/arm_api.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/arm/arm_api.c')
-rw-r--r--src/arm/arm_api.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c
index 69569511f..c708f9150 100644
--- a/src/arm/arm_api.c
+++ b/src/arm/arm_api.c
@@ -205,10 +205,9 @@ trigger_next_request (struct GNUNET_ARM_Handle *h, int ignore_currently_down);
205 * Task scheduled to try to re-connect to arm. 205 * Task scheduled to try to re-connect to arm.
206 * 206 *
207 * @param cls the 'struct GNUNET_ARM_Handle' 207 * @param cls the 'struct GNUNET_ARM_Handle'
208 * @param tc task context
209 */ 208 */
210static void 209static void
211reconnect_arm_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 210reconnect_arm_task (void *cls)
212{ 211{
213 struct GNUNET_ARM_Handle *h = cls; 212 struct GNUNET_ARM_Handle *h = cls;
214 213
@@ -711,10 +710,9 @@ GNUNET_ARM_disconnect_and_free (struct GNUNET_ARM_Handle *h)
711 * Message timed out. Remove it from the queue. 710 * Message timed out. Remove it from the queue.
712 * 711 *
713 * @param cls the message (struct ARMControlMessage *) 712 * @param cls the message (struct ARMControlMessage *)
714 * @param tc task context
715 */ 713 */
716static void 714static void
717control_message_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 715control_message_timeout (void *cls)
718{ 716{
719 struct ARMControlMessage *cm = cls; 717 struct ARMControlMessage *cm = cls;
720 struct GNUNET_ARM_Message *arm_msg; 718 struct GNUNET_ARM_Message *arm_msg;