aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-23 07:08:26 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-23 07:08:26 +0000
commit22237017a7abee1bc6c664c255a783e9dfe2b037 (patch)
tree237f1ec56b2047cb6ba553126d29172f2874e9cc
parentee9441f8489509be7e96beb624c2d19feda7eb30 (diff)
downloadbusybox-w32-22237017a7abee1bc6c664c255a783e9dfe2b037.tar.gz
busybox-w32-22237017a7abee1bc6c664c255a783e9dfe2b037.tar.bz2
busybox-w32-22237017a7abee1bc6c664c255a783e9dfe2b037.zip
Fix a silly compile error, thanks to a patch from Wen-chien Jesse Sung
-rw-r--r--init/init.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/init/init.c b/init/init.c
index ad9ff9404..258a7fa6b 100644
--- a/init/init.c
+++ b/init/init.c
@@ -219,7 +219,10 @@ static void message(int device, const char *fmt, ...)
219{ 219{
220 va_list arguments; 220 va_list arguments;
221 int l; 221 int l;
222 char msg[1024]; 222 char msg[1024];
223#ifndef CONFIG_SYSLOGD
224 static int log_fd = -1;
225#endif
223 226
224 msg[0] = '\r'; 227 msg[0] = '\r';
225 va_start(arguments, fmt); 228 va_start(arguments, fmt);
@@ -236,7 +239,6 @@ static void message(int device, const char *fmt, ...)
236 msg[l++] = '\n'; 239 msg[l++] = '\n';
237 msg[l] = 0; 240 msg[l] = 0;
238#else 241#else
239 static int log_fd = -1;
240 242
241 msg[l++] = '\n'; 243 msg[l++] = '\n';
242 msg[l] = 0; 244 msg[l] = 0;