From 22237017a7abee1bc6c664c255a783e9dfe2b037 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 23 Jan 2003 07:08:26 +0000 Subject: Fix a silly compile error, thanks to a patch from Wen-chien Jesse Sung --- init/init.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'init') 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, ...) { 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; -- cgit v1.2.3