diff options
author | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-01-23 22:30:04 +0000 |
---|---|---|
committer | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-01-23 22:30:04 +0000 |
commit | b2b4893698607c194acfd2e355154b54273b8880 (patch) | |
tree | 852d97bdc34c44dbcf29cc8b5cd9257a8c90f7b3 /telnet.c | |
parent | fc2d2e3371dbe137decc3aa2065acd6140226f94 (diff) | |
download | busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.tar.gz busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.tar.bz2 busybox-w32-b2b4893698607c194acfd2e355154b54273b8880.zip |
#define -> static const int. Also got rid of some big static buffers.
git-svn-id: svn://busybox.net/trunk/busybox@1642 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'telnet.c')
-rw-r--r-- | telnet.c | 28 |
1 files changed, 15 insertions, 13 deletions
@@ -50,7 +50,7 @@ | |||
50 | #include <netdb.h> | 50 | #include <netdb.h> |
51 | 51 | ||
52 | #if 0 | 52 | #if 0 |
53 | #define DOTRACE 1 | 53 | static const int DOTRACE = 1; |
54 | #endif | 54 | #endif |
55 | 55 | ||
56 | #ifdef DOTRACE | 56 | #ifdef DOTRACE |
@@ -67,21 +67,23 @@ | |||
67 | #include <sys/time.h> | 67 | #include <sys/time.h> |
68 | #endif | 68 | #endif |
69 | 69 | ||
70 | #define DATABUFSIZE 128 | 70 | static const int DATABUFSIZE = 128; |
71 | #define IACBUFSIZE 128 | 71 | static const int IACBUFSIZE = 128; |
72 | 72 | ||
73 | #define CHM_TRY 0 | 73 | static const int CHM_TRY = 0; |
74 | #define CHM_ON 1 | 74 | static const int CHM_ON = 1; |
75 | #define CHM_OFF 2 | 75 | static const int CHM_OFF = 2; |
76 | 76 | ||
77 | #define UF_ECHO 0x01 | 77 | static const int UF_ECHO = 0x01; |
78 | #define UF_SGA 0x02 | 78 | static const int UF_SGA = 0x02; |
79 | 79 | ||
80 | #define TS_0 1 | 80 | enum { |
81 | #define TS_IAC 2 | 81 | TS_0 = 1, |
82 | #define TS_OPT 3 | 82 | TS_IAC = 2, |
83 | #define TS_SUB1 4 | 83 | TS_OPT = 3, |
84 | #define TS_SUB2 5 | 84 | TS_SUB1 = 4, |
85 | TS_SUB2 = 5, | ||
86 | }; | ||
85 | 87 | ||
86 | #define WriteCS(fd, str) write(fd, str, sizeof str -1) | 88 | #define WriteCS(fd, str) write(fd, str, sizeof str -1) |
87 | 89 | ||