task_register() conversion: stdin task
[paraslash.git] / client.c
index 338f05c..56e7cc5 100644 (file)
--- a/client.c
+++ b/client.c
@@ -544,8 +544,7 @@ static int supervisor_post_select(struct sched *s, struct task *t)
                return 1;
        }
        if (ct->status == CL_SENDING) {
                return 1;
        }
        if (ct->status == CL_SENDING) {
-               stdin_set_defaults(&sit);
-               register_task(s, &sit.task);
+               stdin_task_register(&sit, s);
                return -E_TASK_STARTED;
        }
        return 0;
                return -E_TASK_STARTED;
        }
        return 0;