svn commit: trunk/busybox/sysklogd

vodz at busybox.net vodz at busybox.net
Sat Oct 15 14:24:02 UTC 2005


Author: vodz
Date: 2005-10-15 07:24:01 -0700 (Sat, 15 Oct 2005)
New Revision: 11873

Log:
20 bytes data to bss

Modified:
   trunk/busybox/sysklogd/syslogd.c


Changeset:
Modified: trunk/busybox/sysklogd/syslogd.c
===================================================================
--- trunk/busybox/sysklogd/syslogd.c	2005-10-15 14:13:09 UTC (rev 11872)
+++ trunk/busybox/sysklogd/syslogd.c	2005-10-15 14:24:01 UTC (rev 11873)
@@ -319,9 +319,8 @@
 
 	} else
 #endif
-	if ((fd =
-			 device_open(logFilePath,
-							 O_WRONLY | O_CREAT | O_NOCTTY | O_APPEND |
+	if ((fd = device_open(logFilePath,
+					O_WRONLY | O_CREAT | O_NOCTTY | O_APPEND |
 							 O_NONBLOCK)) >= 0) {
 		fl.l_type = F_WRLCK;
 		fcntl(fd, F_SETLKW, &fl);
@@ -363,8 +362,7 @@
 		close(fd);
 	} else {
 		/* Always send console messages to /dev/console so people will see them. */
-		if ((fd =
-			 device_open(_PATH_CONSOLE,
+		if ((fd = device_open(_PATH_CONSOLE,
 						 O_WRONLY | O_NOCTTY | O_NONBLOCK)) >= 0) {
 			va_start(arguments, fmt);
 			vdprintf(fd, fmt, arguments);
@@ -400,7 +398,7 @@
 {
 	time_t now;
 	char *timestamp;
-	static char res[20] = "";
+	static char res[20];
 #ifdef CONFIG_FEATURE_REMOTE_LOG	
 	static char line[MAXLINE + 1];
 #endif




More information about the busybox-cvs mailing list