summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
author"Vladimir N. Oleynik"2005-10-12 15:34:25 +0000
committer"Vladimir N. Oleynik"2005-10-12 15:34:25 +0000
commit6c35c7c97628cb81eb26c2a059b0dde2879d91aa (patch)
tree0da08a6d852fcb5d68bbe3a368460ed815b74923 /init
parent86a1073e0bfa608defbfaa43d94a537c5e700efe (diff)
downloadbusybox-6c35c7c97628cb81eb26c2a059b0dde2879d91aa.zip
busybox-6c35c7c97628cb81eb26c2a059b0dde2879d91aa.tar.gz
usage bb_dev_null
Diffstat (limited to 'init')
-rw-r--r--init/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c
index 166f526..96c7046 100644
--- a/init/init.c
+++ b/init/init.c
@@ -353,7 +353,7 @@ static void console_init(void)
#ifndef CONFIG_SYSLOGD
log_console =
#endif
- safe_strncpy(console, "/dev/null", sizeof(console));
+ safe_strncpy(console, bb_dev_null, sizeof(console));
} else {
s = getenv("TERM");
/* check for serial console */
@@ -834,7 +834,7 @@ static void new_init_action(int action, const char *command, const char *cons)
/* do not run entries if console device is not available */
if (access(cons, R_OK | W_OK))
return;
- if (strcmp(cons, "/dev/null") == 0 && (action & ASKFIRST))
+ if (strcmp(cons, bb_dev_null) == 0 && (action & ASKFIRST))
return;
new_action = calloc((size_t) (1), sizeof(struct init_action));