diff options
author | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-01-23 22:30:04 +0000 |
---|---|---|
committer | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-01-23 22:30:04 +0000 |
commit | b2b4893698607c194acfd2e355154b54273b8880 (patch) | |
tree | 852d97bdc34c44dbcf29cc8b5cd9257a8c90f7b3 /syslogd.c | |
parent | fc2d2e3371dbe137decc3aa2065acd6140226f94 (diff) | |
download | busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.tar.gz busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.tar.bz2 busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.zip |
#define -> static const int. Also got rid of some big static buffers.
git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ]; |