From cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b Mon Sep 17 00:00:00 2001 From: kcwu Date: Thu, 3 Jun 2004 20:48:54 +0000 Subject: use 'const' keyword to reduce 7904 bytes data segment from 9320 to 1416 git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2049 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd/mail.c') diff --git a/mbbsd/mail.c b/mbbsd/mail.c index b8da8226..cf353893 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -987,7 +987,7 @@ mail_mark(int ent, fileheader_t * fhdr, char *direct) } /* help for mail reading */ -static char *mail_help[] = { +static char * const mail_help[] = { "\0電子信箱操作說明", "\01基本命令", "(p)(↑) 前一篇文章", @@ -1270,7 +1270,7 @@ mail_waterball(int ent, fileheader_t * fhdr, char *direct) return FULLUPDATE; } #endif -static onekey_t mail_comms[] = { +const static onekey_t mail_comms[] = { NULL, // Ctrl('A') 1 NULL, // Ctrl('B') NULL, // Ctrl('C') -- cgit v1.2.3