diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-18 05:43:05 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-18 05:43:05 +0000 |
commit | 70ab28f90776de54cd136a411b2914b1b88cc3de (patch) | |
tree | 29fa4f8623d91ff11ade01416f7d0ac0ae5d09ee /sysklogd | |
parent | fbe5f39f0fe0439678581fdad153f1df437f395d (diff) | |
download | busybox-w32-70ab28f90776de54cd136a411b2914b1b88cc3de.tar.gz busybox-w32-70ab28f90776de54cd136a411b2914b1b88cc3de.tar.bz2 busybox-w32-70ab28f90776de54cd136a411b2914b1b88cc3de.zip |
syslogd: use DEV_CONSOLE consistently
init: remove obsolete comment
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/syslogd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index e3abcc7cb..5998732bd 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -299,7 +299,7 @@ static void log_locally(char *msg) | |||
299 | | O_NOCTTY | O_APPEND | O_NONBLOCK); | 299 | | O_NOCTTY | O_APPEND | O_NONBLOCK); |
300 | if (G.logFD < 0) { | 300 | if (G.logFD < 0) { |
301 | /* cannot open logfile? - print to /dev/console then */ | 301 | /* cannot open logfile? - print to /dev/console then */ |
302 | int fd = device_open(_PATH_CONSOLE, O_WRONLY | O_NOCTTY | O_NONBLOCK); | 302 | int fd = device_open(DEV_CONSOLE, O_WRONLY | O_NOCTTY | O_NONBLOCK); |
303 | if (fd < 0) | 303 | if (fd < 0) |
304 | fd = 2; /* then stderr, dammit */ | 304 | fd = 2; /* then stderr, dammit */ |
305 | full_write(fd, msg, len); | 305 | full_write(fd, msg, len); |