summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2014-08-07 12:22:01 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2014-08-07 12:22:01 +0800
commit1e6dd75a652eb3d89c1ca4c3504106de9ce3d201 (patch)
tree6d566ff2c6f3512ba68c6e11e4a38f019c649445
parentdc3a3ec864f0b2bf2ef2af4a6940c203c16fc2aa (diff)
downloadpttbbs-1e6dd75a652eb3d89c1ca4c3504106de9ce3d201.tar
pttbbs-1e6dd75a652eb3d89c1ca4c3504106de9ce3d201.tar.gz
pttbbs-1e6dd75a652eb3d89c1ca4c3504106de9ce3d201.tar.bz2
pttbbs-1e6dd75a652eb3d89c1ca4c3504106de9ce3d201.tar.lz
pttbbs-1e6dd75a652eb3d89c1ca4c3504106de9ce3d201.tar.xz
pttbbs-1e6dd75a652eb3d89c1ca4c3504106de9ce3d201.tar.zst
pttbbs-1e6dd75a652eb3d89c1ca4c3504106de9ce3d201.zip
Never do hashPost.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@6035 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index 229b1e01..15980a6d 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -2107,7 +2107,7 @@ cross_post(int ent, fileheader_t * fhdr, const char *direct)
char genbuf[200];
fileheader_t xfile;
FILE *xptr;
- int xbid, hashPost;
+ int xbid;
boardheader_t *bp;
assert(0<=currbid-1 && currbid-1<MAX_BOARD);
@@ -2181,11 +2181,6 @@ cross_post(int ent, fileheader_t * fhdr, const char *direct)
}
/* 不要借用變數,記憶體沒那麼缺,人腦混亂的代價比較高 */
-
- // XXX cross-posting a series of articles should not be cross-post?
- // so let's use filename instead of title.
- // hashPost = StringHash(fhdr->title); // why use title?
- hashPost = StringHash(fhdr->filename); // let's try filename
xbid = getbnum(xboard);
assert(0<=xbid-1 && xbid-1<MAX_BOARD);