projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee9441f
)
Fix a silly compile error, thanks to a patch from Wen-chien Jesse Sung
author
Eric Andersen
<andersen@codepoet.org>
Thu, 23 Jan 2003 07:08:26 +0000
(07:08 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Thu, 23 Jan 2003 07:08:26 +0000
(07:08 -0000)
init/init.c
patch
|
blob
|
history
diff --git
a/init/init.c
b/init/init.c
index ad9ff94042ad237e0bcf78dc2d1f8071bd6f9dd1..258a7fa6b6c8b2adc3407414dbeb337f95b2525f 100644
(file)
--- 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;