summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-09-17 02:41:55 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-09-17 02:41:55 +0800
commit2c244129ac12bfe6d58bee71288c2b8746dab755 (patch)
treee49592872c8b3aaa8aa2b05ef227477833a9a804 /mbbsd/mbbsd.c
parent5f36f8a8fb4424a5b75f6c2e478a4a398ec1492a (diff)
downloadpttbbs-2c244129ac12bfe6d58bee71288c2b8746dab755.tar
pttbbs-2c244129ac12bfe6d58bee71288c2b8746dab755.tar.gz
pttbbs-2c244129ac12bfe6d58bee71288c2b8746dab755.tar.bz2
pttbbs-2c244129ac12bfe6d58bee71288c2b8746dab755.tar.lz
pttbbs-2c244129ac12bfe6d58bee71288c2b8746dab755.tar.xz
pttbbs-2c244129ac12bfe6d58bee71288c2b8746dab755.tar.zst
pttbbs-2c244129ac12bfe6d58bee71288c2b8746dab755.zip
enum usage fix, saved few bytes.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3414 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index d5779b80..1e3f16fd 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1786,14 +1786,14 @@ static int check_banip(char *host)
/* ------- piaip's implementation of TELNET protocol ------- */
-enum {
+enum TELNET_IAC_STATES {
IAC_NONE,
IAC_COMMAND,
IAC_WAIT_OPT,
IAC_WAIT_SE,
IAC_PROCESS_OPT,
IAC_ERROR
-} TELNET_IAC_STATES;
+};
static unsigned char iac_state = 0; /* as byte to reduce memory */