diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 6 |
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, ...) { 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; |