diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-07-02 17:32:40 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-07-02 17:32:40 +0000 |
commit | c1b2f2fa1c5aca97317d4c5087c7ceba7786860a (patch) | |
tree | 262a81a2bf9e268b5ca8db3bbc7695de495315c9 /syslogd.c | |
parent | 18705680e6a68aad3fdcfe5f6473f3a95cd863b5 (diff) | |
download | busybox-w32-c1b2f2fa1c5aca97317d4c5087c7ceba7786860a.tar.gz busybox-w32-c1b2f2fa1c5aca97317d4c5087c7ceba7786860a.tar.bz2 busybox-w32-c1b2f2fa1c5aca97317d4c5087c7ceba7786860a.zip |
Per patch from vodz, change a couple of consts to defines, since
apparently gcc 2.95.4, at least, is too stupid to realize that a
"static const int" is in fact a constant.
git-svn-id: svn://busybox.net/trunk/busybox@2969 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -387,7 +387,9 @@ static void domark(int sig) | |||
387 | } | 387 | } |
388 | } | 388 | } |
389 | 389 | ||
390 | static const int BUFSIZE = 1023; | 390 | /* This must be a #define, since when DODEBUG and BUFFERS_GO_IN_BSS are |
391 | * enabled, we otherwise get a "storage size isn't constant error. */ | ||
392 | #define BUFSIZE 1023 | ||
391 | static int serveConnection (int conn) | 393 | static int serveConnection (int conn) |
392 | { | 394 | { |
393 | RESERVE_BB_BUFFER(tmpbuf, BUFSIZE + 1); | 395 | RESERVE_BB_BUFFER(tmpbuf, BUFSIZE + 1); |