diff options
author | Mark Whitley <markw@lineo.com> | 2001-01-23 22:30:04 +0000 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2001-01-23 22:30:04 +0000 |
commit | 59ab025363d884deb2013dcaae6c968585a6ec72 (patch) | |
tree | 852d97bdc34c44dbcf29cc8b5cd9257a8c90f7b3 /sysklogd | |
parent | 2b8d07c590249991fae975652aae86f5fca91f81 (diff) | |
download | busybox-w32-59ab025363d884deb2013dcaae6c968585a6ec72.tar.gz busybox-w32-59ab025363d884deb2013dcaae6c968585a6ec72.tar.bz2 busybox-w32-59ab025363d884deb2013dcaae6c968585a6ec72.zip |
#define -> static const int. Also got rid of some big static buffers.
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/syslogd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 4217c362f..114516e2f 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -165,7 +165,7 @@ static void logMessage (int pri, char *msg) | |||
165 | #ifdef BB_FEATURE_REMOTE_LOG | 165 | #ifdef BB_FEATURE_REMOTE_LOG |
166 | /* send message to remote logger */ | 166 | /* send message to remote logger */ |
167 | if ( -1 != remotefd){ | 167 | if ( -1 != remotefd){ |
168 | #define IOV_COUNT 2 | 168 | static const int IOV_COUNT = 2; |
169 | struct iovec iov[IOV_COUNT]; | 169 | struct iovec iov[IOV_COUNT]; |
170 | struct iovec *v = iov; | 170 | struct iovec *v = iov; |
171 | 171 | ||
@@ -206,7 +206,7 @@ static void domark(int sig) | |||
206 | } | 206 | } |
207 | } | 207 | } |
208 | 208 | ||
209 | #define BUFSIZE 1023 | 209 | static const int BUFSIZE = 1023; |
210 | static int serveConnection (int conn) | 210 | static int serveConnection (int conn) |
211 | { | 211 | { |
212 | char buf[ BUFSIZE + 1 ]; | 212 | char buf[ BUFSIZE + 1 ]; |