diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-06-04 04:48:54 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-06-04 04:48:54 +0800 |
commit | cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b (patch) | |
tree | 4dbd531777a74b9d4da86a2433db23795a79ac3e /mbbsd/page.c | |
parent | 6458d8379fc2bf2262ecc55f753aab70ea8a0ac4 (diff) | |
download | pttbbs-cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b.tar pttbbs-cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b.tar.gz pttbbs-cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b.tar.bz2 pttbbs-cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b.tar.lz pttbbs-cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b.tar.xz pttbbs-cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b.tar.zst pttbbs-cfe2d30c2a8fb3a5c1e6b99c0b26bfd61fca520b.zip |
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
Diffstat (limited to 'mbbsd/page.c')
-rw-r--r-- | mbbsd/page.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/page.c b/mbbsd/page.c index 1757412f..ce6e6ea8 100644 --- a/mbbsd/page.c +++ b/mbbsd/page.c @@ -5,7 +5,7 @@ #define TITLE "\033[1;37;45m 火車查詢系統 \033[1;44;33m原作者:Heat\033[m" static void -print_station(const char *addr[6][100], int path, int *line, int *num) +print_station(const char * const addr[6][100], int path, int *line, int *num) { int i; @@ -30,7 +30,7 @@ main_railway() int line, station_num; char tt[2], type[2]; char command[256], buf[8]; - static const char *addr[6][100] = { + static const char * const addr[6][100] = { { "基隆", "八堵", "七堵", "五堵", "汐止", "南港", "松山", "台北", "萬華", "板橋", "樹林", "山佳", "鶯歌", "桃園", "內壢", "中壢", "埔心", "楊梅", |