aboutsummaryrefslogtreecommitdiff
path: root/syslogd.c
diff options
context:
space:
mode:
authormarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-23 22:30:04 +0000
committermarkw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-01-23 22:30:04 +0000
commitb2b4893698607c194acfd2e355154b54273b8880 (patch)
tree852d97bdc34c44dbcf29cc8b5cd9257a8c90f7b3 /syslogd.c
parentfc2d2e3371dbe137decc3aa2065acd6140226f94 (diff)
downloadbusybox-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/syslogd.c b/syslogd.c
index 4217c362f..114516e2f 100644
--- a/syslogd.c
+++ b/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 168static 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 209static const int BUFSIZE = 1023;
210static int serveConnection (int conn) 210static int serveConnection (int conn)
211{ 211{
212 char buf[ BUFSIZE + 1 ]; 212 char buf[ BUFSIZE + 1 ];