mirror of
https://github.com/sheumann/hush.git
synced 2024-12-26 10:32:02 +00:00
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.
This commit is contained in:
parent
2870d964f8
commit
22ecf049b6
@ -31,7 +31,9 @@
|
||||
#include <sys/types.h>
|
||||
#include "busybox.h"
|
||||
|
||||
static const int ASCII = 0377;
|
||||
/* 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 ASCII 0377
|
||||
|
||||
/* some "globals" shared across this file */
|
||||
static char com_fl, del_fl, sq_fl;
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
4
tr.c
4
tr.c
@ -31,7 +31,9 @@
|
||||
#include <sys/types.h>
|
||||
#include "busybox.h"
|
||||
|
||||
static const int ASCII = 0377;
|
||||
/* 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 ASCII 0377
|
||||
|
||||
/* some "globals" shared across this file */
|
||||
static char com_fl, del_fl, sq_fl;
|
||||
|
Loading…
Reference in New Issue
Block a user