summaryrefslogtreecommitdiffstats
path: root/mbbsd/vice.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-19 20:59:50 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-19 20:59:50 +0800
commit15135e4525a4294ce016f87e85841e7d3ec2164b (patch)
treec88bdd5afd05c2b5c5d08984b87fe103ec96cd9c /mbbsd/vice.c
parent7c0c9404b7353ca9c4bf08b0b9a3226554ea8031 (diff)
downloadpttbbs-15135e4525a4294ce016f87e85841e7d3ec2164b.tar
pttbbs-15135e4525a4294ce016f87e85841e7d3ec2164b.tar.gz
pttbbs-15135e4525a4294ce016f87e85841e7d3ec2164b.tar.bz2
pttbbs-15135e4525a4294ce016f87e85841e7d3ec2164b.tar.lz
pttbbs-15135e4525a4294ce016f87e85841e7d3ec2164b.tar.xz
pttbbs-15135e4525a4294ce016f87e85841e7d3ec2164b.tar.zst
pttbbs-15135e4525a4294ce016f87e85841e7d3ec2164b.zip
add 'const' qualifiers on function parameters.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2632 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/vice.c')
-rw-r--r--mbbsd/vice.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/vice.c b/mbbsd/vice.c
index 460a1c5a..3f69e440 100644
--- a/mbbsd/vice.c
+++ b/mbbsd/vice.c
@@ -33,7 +33,7 @@ vice_load(char tbingo[6][15])
}
static int
-check(char tbingo[6][15], char *data)
+check(char tbingo[6][15], const char *data)
{
int i = 0, j;
@@ -48,7 +48,7 @@ check(char tbingo[6][15], char *data)
}
/* TODO Ptt:showfile ran_showfile more ¤TªÌ­n¦X */
static int
-ran_showfile(int y, int x, char *filename, int maxnum)
+ran_showfile(int y, int x, const char *filename, int maxnum)
{
FILE *fs;
char buf[512];
@@ -70,7 +70,7 @@ ran_showfile(int y, int x, char *filename, int maxnum)
}
static int
-ran_showmfile(char *filename, int maxnum)
+ran_showmfile(const char *filename, int maxnum)
{
char buf[256];