From dbc800ca7817efa98dca8423364f8868cf243cc0 Mon Sep 17 00:00:00 2001
From: Pedro Gonnet <gonnet@google.com>
Date: Tue, 8 Mar 2016 21:52:21 +0100
Subject: [PATCH] use 's' instead of '&e->sched'.

---
 src/engine.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/engine.c b/src/engine.c
index d75cef107c..98eab16a7e 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -375,10 +375,10 @@ void engine_addtasks_send(struct engine *e, struct cell *ci, struct cell *cj) {
 
     /* Create the tasks. */
     struct task *t_xv =
-        scheduler_addtask(&e->sched, task_type_send, task_subtype_none,
+        scheduler_addtask(s, task_type_send, task_subtype_none,
                           2 * ci->tag, 0, ci, cj, 0);
     struct task *t_rho =
-        scheduler_addtask(&e->sched, task_type_send, task_subtype_none,
+        scheduler_addtask(s, task_type_send, task_subtype_none,
                           2 * ci->tag + 1, 0, ci, cj, 0);
 
     /* The send_rho task depends on the cell's ghost task. */
@@ -422,10 +422,10 @@ void engine_addtasks_recv(struct engine *e, struct cell *c, struct task *t_xv,
 
     /* Create the tasks. */
     t_xv = c->recv_xv =
-        scheduler_addtask(&e->sched, task_type_recv, task_subtype_none,
+        scheduler_addtask(s, task_type_recv, task_subtype_none,
                           2 * c->tag, 0, c, NULL, 0);
     t_rho = c->recv_rho =
-        scheduler_addtask(&e->sched, task_type_recv, task_subtype_none,
+        scheduler_addtask(s, task_type_recv, task_subtype_none,
                           2 * c->tag + 1, 0, c, NULL, 0);
   }
 
-- 
GitLab