]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - sched.c
string: Rename para_malloc() -> alloc().
[paraslash.git] / sched.c
diff --git a/sched.c b/sched.c
index a2903940fdaea1b24d6a49cfc2f54766c136070f..b2e78a1b3cf90c1500dae66b8ca5826c1d5ed675 100644 (file)
--- 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);