aboutsummaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-03 21:00:43 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-03 21:00:43 +0000
commit8f8f268cfdecb4cabeb2e649a73afc7a485aeff5 (patch)
tree8c555cc94aca9fabd177526e554d93bed4886642 /init/init.c
parent67b23e6043d8e2b30b0bf3bc105b8583c2a26db5 (diff)
downloadbusybox-w32-8f8f268cfdecb4cabeb2e649a73afc7a485aeff5.tar.gz
busybox-w32-8f8f268cfdecb4cabeb2e649a73afc7a485aeff5.tar.bz2
busybox-w32-8f8f268cfdecb4cabeb2e649a73afc7a485aeff5.zip
bb_applet_name -> applet_name
Diffstat (limited to 'init/init.c')
-rw-r--r--init/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c
index d7d14a2d5..8257b7fb0 100644
--- a/init/init.c
+++ b/init/init.c
@@ -195,7 +195,7 @@ static void message(int device, const char *fmt, ...)
195 /* Log the message to syslogd */ 195 /* Log the message to syslogd */
196 if (device & LOG) { 196 if (device & LOG) {
197 /* don`t out "\r\n" */ 197 /* don`t out "\r\n" */
198 openlog(bb_applet_name, 0, LOG_DAEMON); 198 openlog(applet_name, 0, LOG_DAEMON);
199 syslog(LOG_INFO, "%s", msg + 1); 199 syslog(LOG_INFO, "%s", msg + 1);
200 closelog(); 200 closelog();
201 } 201 }
@@ -982,7 +982,7 @@ int init_main(int argc, char **argv)
982#if !ENABLE_DEBUG_INIT 982#if !ENABLE_DEBUG_INIT
983 /* Expect to be invoked as init with PID=1 or be invoked as linuxrc */ 983 /* Expect to be invoked as init with PID=1 or be invoked as linuxrc */
984 if (getpid() != 1 && 984 if (getpid() != 1 &&
985 (!ENABLE_FEATURE_INITRD || !strstr(bb_applet_name, "linuxrc"))) 985 (!ENABLE_FEATURE_INITRD || !strstr(applet_name, "linuxrc")))
986 { 986 {
987 bb_show_usage(); 987 bb_show_usage();
988 } 988 }