diff options
author | Eric Andersen | 2001-07-02 17:32:40 +0000 |
---|---|---|
committer | Eric Andersen | 2001-07-02 17:32:40 +0000 |
commit | 22ecf049b634ccd507ed0587526599ed1971c308 (patch) | |
tree | 262a81a2bf9e268b5ca8db3bbc7695de495315c9 /sysklogd/syslogd.c | |
parent | 2870d964f8c849d00be20927085f45a30e4e8e53 (diff) | |
download | busybox-22ecf049b634ccd507ed0587526599ed1971c308.zip busybox-22ecf049b634ccd507ed0587526599ed1971c308.tar.gz |
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.
Diffstat (limited to 'sysklogd/syslogd.c')
-rw-r--r-- | sysklogd/syslogd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 8d8bd1a..89f5348 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -387,7 +387,9 @@ static void domark(int sig) } } -static const int BUFSIZE = 1023; +/* This must be a #define, since when DODEBUG and BUFFERS_GO_IN_BSS are + * enabled, we otherwise get a "storage size isn't constant error. */ +#define BUFSIZE 1023 static int serveConnection (int conn) { RESERVE_BB_BUFFER(tmpbuf, BUFSIZE + 1); |