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/bbs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mbbsd/bbs.c') diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index a48ad6af..27e93996 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -6,7 +6,7 @@ static int recommend(int ent, fileheader_t * fhdr, char *direct); #ifdef ASSESS -static char *badpost_reason[] = { +static char * const badpost_reason[] = { "廣告", "不當用辭", "人身攻擊" }; #endif @@ -2183,7 +2183,7 @@ good_post(int ent, fileheader_t * fhdr, char *direct) } /* help for board reading */ -static char *board_help[] = { +static char * const board_help[] = { "\0全功\能看板操作說明", "\01基本命令", "(p)(↑) 上移一篇文章 (^P/^O/^V)發表文章/競標/活動連署", @@ -2302,7 +2302,7 @@ change_counting(int ent, fileheader_t * fhdr, char *direct) /* 看板功能表 */ /* ----------------------------------------------------- */ /* onekey_size was defined in ../include/pttstruct.h, as ((int)'z') */ -onekey_t read_comms[] = { +const onekey_t read_comms[] = { show_filename, // Ctrl('A') NULL, // Ctrl('B') NULL, // Ctrl('C') -- cgit v1.2.3