Fix a silly compile error, thanks to a patch from Wen-chien Jesse Sung
authorEric Andersen <andersen@codepoet.org>
Thu, 23 Jan 2003 07:08:26 +0000 (07:08 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 23 Jan 2003 07:08:26 +0000 (07:08 -0000)
init/init.c

index ad9ff94042ad237e0bcf78dc2d1f8071bd6f9dd1..258a7fa6b6c8b2adc3407414dbeb337f95b2525f 100644 (file)
@@ -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;