diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 13:48:17 +0400 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 13:48:17 +0400 |
commit | 5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d (patch) | |
tree | 44b7cf5fb706b0816dd4525782ca8c37d07c2f43 /init | |
parent | 636a1f85e89432601c59cdc3239fc867b4adf051 (diff) |
- use STD*_FILENO some more. No object-code changes
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/init/init.c b/init/init.c index 63154ce89..e3993896d 100644 --- a/init/init.c +++ b/init/init.c @@ -175,7 +175,7 @@ static void message(int where, const char *fmt, ...) if (where & L_CONSOLE) { /* Send console messages to console so people will see them. */ - full_write(2, msg, l); + full_write(STDERR_FILENO, msg, l); } } @@ -471,8 +471,8 @@ static pid_t run(const struct init_action *a) messageD(L_LOG, "waiting for enter to start '%s'" "(pid %d, tty '%s')\n", a->command, getpid(), a->terminal); - full_write(1, press_enter, sizeof(press_enter) - 1); - while (safe_read(0, &c, 1) == 1 && c != '\n') + full_write(STDOUT_FILENO, press_enter, sizeof(press_enter) - 1); + while (safe_read(STDIN_FILENO, &c, 1) == 1 && c != '\n') continue; } |