task_register() conversion: stdin task
[paraslash.git] / write.c
diff --git a/write.c b/write.c
index 4ed5f72..aa230f5 100644 (file)
--- a/write.c
+++ b/write.c
@@ -104,8 +104,7 @@ static int setup_and_schedule(void)
 
        sit.btrn = btr_new_node(&(struct btr_node_description)
                EMBRACE(.name = "stdin"));
-       stdin_set_defaults(&sit);
-       register_task(&s, &sit.task);
+       stdin_task_register(&sit, &s);
 
        COPY_WAV_PARMS(&wp, &conf);
        wt.cwc = check_wav_init(sit.btrn, NULL, &wp, &cw_btrn);
@@ -149,6 +148,7 @@ static int setup_and_schedule(void)
        }
        free(wns);
        check_wav_shutdown(wt.cwc);
+       sched_shutdown(&s);
        return ret;
 }