Fix a silly compile error, thanks to a patch from Wen-chien Jesse Sung
This commit is contained in:
parent
ee9441f848
commit
22237017a7
@ -220,6 +220,9 @@ static void message(int device, const char *fmt, ...)
|
|||||||
va_list arguments;
|
va_list arguments;
|
||||||
int l;
|
int l;
|
||||||
char msg[1024];
|
char msg[1024];
|
||||||
|
#ifndef CONFIG_SYSLOGD
|
||||||
|
static int log_fd = -1;
|
||||||
|
#endif
|
||||||
|
|
||||||
msg[0] = '\r';
|
msg[0] = '\r';
|
||||||
va_start(arguments, fmt);
|
va_start(arguments, fmt);
|
||||||
@ -236,7 +239,6 @@ static void message(int device, const char *fmt, ...)
|
|||||||
msg[l++] = '\n';
|
msg[l++] = '\n';
|
||||||
msg[l] = 0;
|
msg[l] = 0;
|
||||||
#else
|
#else
|
||||||
static int log_fd = -1;
|
|
||||||
|
|
||||||
msg[l++] = '\n';
|
msg[l++] = '\n';
|
||||||
msg[l] = 0;
|
msg[l] = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user