diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 21:01:43 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 21:01:43 +0800 |
commit | 6eba59f302a382cb031543031b2b273ee85d796f (patch) | |
tree | 641716aeab80a4d81cb4b12046387f6db9b48880 /mbbsd | |
parent | 116b6f11687f2d0153af1ae3e26534efea20e9fa (diff) | |
download | pttbbs-6eba59f302a382cb031543031b2b273ee85d796f.tar pttbbs-6eba59f302a382cb031543031b2b273ee85d796f.tar.gz pttbbs-6eba59f302a382cb031543031b2b273ee85d796f.tar.bz2 pttbbs-6eba59f302a382cb031543031b2b273ee85d796f.tar.lz pttbbs-6eba59f302a382cb031543031b2b273ee85d796f.tar.xz pttbbs-6eba59f302a382cb031543031b2b273ee85d796f.tar.zst pttbbs-6eba59f302a382cb031543031b2b273ee85d796f.zip |
currboard is constant pointer
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2644 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 2 | ||||
-rw-r--r-- | mbbsd/mail.c | 2 | ||||
-rw-r--r-- | mbbsd/var.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index fdc9e6a6..7a8b98f7 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1092,7 +1092,7 @@ cross_post(int ent, const fileheader_t * fhdr, const char *direct) getdata(2, 0, "(S)存檔 (L)站內 (Q)取消?[Q] ", genbuf, 3, LCECHO); if (genbuf[0] == 'l' || genbuf[0] == 's') { int currmode0 = currmode; - char *save_currboard; + const char *save_currboard; currmode = 0; setbpath(xfpath, xboard); diff --git a/mbbsd/mail.c b/mbbsd/mail.c index fee66464..e60f1df8 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1114,7 +1114,7 @@ mail_cross_post(int ent, fileheader_t * fhdr, const char *direct) } setuserfile(fname, fhdr->filename); if (ent) { - char *save_currboard; + const char *save_currboard; xptr = fopen(xfpath, "w"); assert(xptr); diff --git a/mbbsd/var.c b/mbbsd/var.c index 515499f5..2d256aac 100644 --- a/mbbsd/var.c +++ b/mbbsd/var.c @@ -85,7 +85,7 @@ char quote_file[80] = "\0"; char quote_user[80] = "\0"; char currtitle[TTLEN + 1] = "\0"; char currauthor[IDLEN + 2] = "\0"; -char *currboard = "\0"; +const char *currboard = "\0"; char currBM[IDLEN * 3 + 10]; const char reset_color[4] = "\033[m"; char margs[64] = "\0"; /* main argv list */ |