X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=sched.c;h=b2e78a1b3cf90c1500dae66b8ca5826c1d5ed675;hb=610cb53b94af8e95326cd44b7845f35cffdb6bf3;hp=a2903940fdaea1b24d6a49cfc2f54766c136070f;hpb=7e611b37e41f0ec7ec6d3173b7e88ed5b9b3a276;p=paraslash.git diff --git a/sched.c b/sched.c index a2903940..b2e78a1b 100644 --- a/sched.c +++ b/sched.c @@ -239,12 +239,12 @@ void sched_shutdown(struct sched *s) */ struct task *task_register(struct task_info *info, struct sched *s) { - struct task *t = para_malloc(sizeof(*t)); + struct task *t = alloc(sizeof(*t)); assert(info->post_select); if (!s->task_list.next) - INIT_LIST_HEAD(&s->task_list); + init_list_head(&s->task_list); t->info = *info; t->name = para_strdup(info->name);