mirror of
https://github.com/sheumann/hush.git
synced 2024-08-22 02:29:00 +00:00
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;
|
||||
int l;
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user