diff options
author | Rob Landley <rob@landley.net> | 2006-03-10 19:22:06 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-03-10 19:22:06 +0000 |
commit | bc68cd14ccaebc17e7e03a08e51fddfb91007624 (patch) | |
tree | beb32cedafc6232bf8a49fe90f0769d471ea6791 /networking/telnet.c | |
parent | dae6aa28598cb2353291f18ca52e768c3259165a (diff) | |
download | busybox-w32-bc68cd14ccaebc17e7e03a08e51fddfb91007624.tar.gz busybox-w32-bc68cd14ccaebc17e7e03a08e51fddfb91007624.tar.bz2 busybox-w32-bc68cd14ccaebc17e7e03a08e51fddfb91007624.zip |
Patch from Denis Vlasenko turning static const int (which gets emitted into
the busybox binary) into enums (which don't).
Diffstat (limited to 'networking/telnet.c')
-rw-r--r-- | networking/telnet.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/networking/telnet.c b/networking/telnet.c index ca4896bf0..2ad44d429 100644 --- a/networking/telnet.c +++ b/networking/telnet.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #include "busybox.h" | 35 | #include "busybox.h" |
36 | 36 | ||
37 | #if 0 | 37 | #if 0 |
38 | static const int DOTRACE = 1; | 38 | enum { DOTRACE = 1 }; |
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | #ifdef DOTRACE | 41 | #ifdef DOTRACE |
@@ -55,14 +55,14 @@ static const int DOTRACE = 1; | |||
55 | #define DATABUFSIZE 128 | 55 | #define DATABUFSIZE 128 |
56 | #define IACBUFSIZE 128 | 56 | #define IACBUFSIZE 128 |
57 | 57 | ||
58 | static const int CHM_TRY = 0; | 58 | enum { |
59 | static const int CHM_ON = 1; | 59 | CHM_TRY = 0, |
60 | static const int CHM_OFF = 2; | 60 | CHM_ON = 1, |
61 | CHM_OFF = 2, | ||
61 | 62 | ||
62 | static const int UF_ECHO = 0x01; | 63 | UF_ECHO = 0x01, |
63 | static const int UF_SGA = 0x02; | 64 | UF_SGA = 0x02, |
64 | 65 | ||
65 | enum { | ||
66 | TS_0 = 1, | 66 | TS_0 = 1, |
67 | TS_IAC = 2, | 67 | TS_IAC = 2, |
68 | TS_OPT = 3, | 68 | TS_OPT = 3, |