summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorEric Andersen2003-01-23 07:08:26 +0000
committerEric Andersen2003-01-23 07:08:26 +0000
commit22237017a7abee1bc6c664c255a783e9dfe2b037 (patch)
tree237f1ec56b2047cb6ba553126d29172f2874e9cc /init
parentee9441f8489509be7e96beb624c2d19feda7eb30 (diff)
downloadbusybox-22237017a7abee1bc6c664c255a783e9dfe2b037.zip
busybox-22237017a7abee1bc6c664c255a783e9dfe2b037.tar.gz
Fix a silly compile error, thanks to a patch from Wen-chien Jesse Sung
Diffstat (limited to 'init')
-rw-r--r--init/init.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c
index ad9ff94..258a7fa 100644
--- a/init/init.c
+++ b/init/init.c
@@ -219,7 +219,10 @@ static void message(int device, const char *fmt, ...)
{
va_list arguments;
int l;
- char msg[1024];
+ char msg[1024];
+#ifndef CONFIG_SYSLOGD
+ static int log_fd = -1;
+#endif
msg[0] = '\r';
va_start(arguments, fmt);
@@ -236,7 +239,6 @@ static void message(int device, const char *fmt, ...)
msg[l++] = '\n';
msg[l] = 0;
#else
- static int log_fd = -1;
msg[l++] = '\n';
msg[l] = 0;