diff options
author | John Crispin <blogic@openwrt.org> | 2013-05-29 14:26:23 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-05-29 14:26:23 +0200 |
commit | dee028e96adea719fade27462c13c878f7dca3e1 (patch) | |
tree | b149e78ee04b26b3b56dad72535a73f2b458cee2 | |
parent | f95bd54a07a5ae06115ffe5d6956bbc8f4a42eb5 (diff) | |
download | unitd-dee028e96adea719fade27462c13c878f7dca3e1.tar unitd-dee028e96adea719fade27462c13c878f7dca3e1.zip |
update rcS.c to match new runqueue api changes
Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r-- | rcS.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -92,9 +92,9 @@ static void q_initd_run(struct runqueue *q, struct runqueue_task *t) exit(1); } -static void q_initd_complete(struct runqueue *q, struct runqueue_process *p, int ret) +static void q_initd_complete(struct runqueue *q, struct runqueue_task *p) { - struct initd *s = container_of(p, struct initd, proc); + struct initd *s = container_of(p, struct initd, proc.task); DEBUG(1, "stop %s %s \n", s->file, s->param); ustream_free(&s->fd.stream); @@ -113,7 +113,7 @@ static void add_initd(char *file, char *param) s = calloc(1, sizeof(*s)); s->proc.task.type = &initd_type; - s->proc.complete = q_initd_complete; + s->proc.task.complete = q_initd_complete; s->param = param; s->file = file; runqueue_task_add(&q, &s->proc.task, false); |