Patch from Denis Vlasenko turning static const int (which gets emitted into

the busybox binary) into enums (which don't).
This commit is contained in:
Rob Landley
2006-03-10 19:22:06 +00:00
parent dae6aa2859
commit bc68cd14cc
28 changed files with 243 additions and 193 deletions

View File

@ -35,7 +35,7 @@
#include "busybox.h"
#if 0
static const int DOTRACE = 1;
enum { DOTRACE = 1 };
#endif
#ifdef DOTRACE
@ -55,14 +55,14 @@ static const int DOTRACE = 1;
#define DATABUFSIZE 128
#define IACBUFSIZE 128
static const int CHM_TRY = 0;
static const int CHM_ON = 1;
static const int CHM_OFF = 2;
static const int UF_ECHO = 0x01;
static const int UF_SGA = 0x02;
enum {
CHM_TRY = 0,
CHM_ON = 1,
CHM_OFF = 2,
UF_ECHO = 0x01,
UF_SGA = 0x02,
TS_0 = 1,
TS_IAC = 2,
TS_OPT = 3,