aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-19 09:48:17 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-05-19 09:48:17 +0000
commit5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d (patch)
tree44b7cf5fb706b0816dd4525782ca8c37d07c2f43 /init
parent636a1f85e89432601c59cdc3239fc867b4adf051 (diff)
downloadbusybox-w32-5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d.tar.gz
busybox-w32-5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d.tar.bz2
busybox-w32-5e25ddb7d369b6785ec3aaa96cbc0521c22aeb0d.zip
- use STD*_FILENO some more. No object-code changes
Diffstat (limited to 'init')
-rw-r--r--init/init.c6
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, ...)
175 175
176 if (where & L_CONSOLE) { 176 if (where & L_CONSOLE) {
177 /* Send console messages to console so people will see them. */ 177 /* Send console messages to console so people will see them. */
178 full_write(2, msg, l); 178 full_write(STDERR_FILENO, msg, l);
179 } 179 }
180} 180}
181 181
@@ -471,8 +471,8 @@ static pid_t run(const struct init_action *a)
471 messageD(L_LOG, "waiting for enter to start '%s'" 471 messageD(L_LOG, "waiting for enter to start '%s'"
472 "(pid %d, tty '%s')\n", 472 "(pid %d, tty '%s')\n",
473 a->command, getpid(), a->terminal); 473 a->command, getpid(), a->terminal);
474 full_write(1, press_enter, sizeof(press_enter) - 1); 474 full_write(STDOUT_FILENO, press_enter, sizeof(press_enter) - 1);
475 while (safe_read(0, &c, 1) == 1 && c != '\n') 475 while (safe_read(STDIN_FILENO, &c, 1) == 1 && c != '\n')
476 continue; 476 continue;
477 } 477 }
478 478