convert para_audiod to the new scheduler.
[paraslash.git] / write.c
diff --git a/write.c b/write.c
index 13b15a1..a3cd4b5 100644 (file)
--- a/write.c
+++ b/write.c
@@ -150,9 +150,8 @@ static struct writer_node_group *check_args(void)
        }
        ret = 1;
 out:
-       if (ret > 0) {
+       if (ret > 0)
                return wng;
-       }
        free(wng);
        return NULL;
 }
@@ -165,8 +164,7 @@ static void idt_event_handler(struct task *t)
        unregister_task(t);
        wng->buf = sit.buf;
        wng->loaded = &sit.loaded;
-       wng->eof = &sit.eof;
-       sprintf(wng->task.status, "%s", "writer node group");
+       wng->input_eof = &sit.eof;
        ret = wng_open(wng);
        if (ret < 0) {
                PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));