diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-08-05 16:50:58 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-08-05 16:50:58 +0800 |
commit | 817b96d19f820eec588ae12ee61240920d9819e2 (patch) | |
tree | 689081eb28addfc26cffa6fc9226375f89018eb2 | |
parent | 6144f08c59823125a03846035a9317229aa1312e (diff) | |
download | pttbbs-817b96d19f820eec588ae12ee61240920d9819e2.tar pttbbs-817b96d19f820eec588ae12ee61240920d9819e2.tar.gz pttbbs-817b96d19f820eec588ae12ee61240920d9819e2.tar.bz2 pttbbs-817b96d19f820eec588ae12ee61240920d9819e2.tar.lz pttbbs-817b96d19f820eec588ae12ee61240920d9819e2.tar.xz pttbbs-817b96d19f820eec588ae12ee61240920d9819e2.tar.zst pttbbs-817b96d19f820eec588ae12ee61240920d9819e2.zip |
fix r2157
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2159 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | include/proto.h | 10 | ||||
-rw-r--r-- | mbbsd/bbs.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/proto.h b/include/proto.h index 2427bbae..36f8f59e 100644 --- a/include/proto.h +++ b/include/proto.h @@ -40,11 +40,11 @@ void initsetproctitle(int argc, char **argv, char **envp); void setproctitle(const char* format, ...) GCC_CHECK_FORMAT(1,2); /* assess */ -int inc_goodpost(int uid, int num); -int inc_badpost(int uid, int num); -int inc_goodsale(int uid, int num); -int inc_badsale(int uid, int num); -void set_assess(int uid, unsigned char num, int type); +int inc_goodpost(char *, int num); +int inc_badpost(char *, int num); +int inc_goodsale(char *, int num); +int inc_badsale(char *, int num); +//void set_assess(int uid, unsigned char num, int type); /* bbs */ int invalid_brdname(char *brd); diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index fcde90b4..f96c1ab4 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -1586,7 +1586,7 @@ recommend(int ent, fileheader_t * fhdr, char *direct) #ifdef ASSESS /* 每 10 次推文 加一次 goodpost */ if (type ==0 && (fhdr->filemode & FILE_MARKED) && fhdr->recommend % 10 == 0) { - inc_goodpost(fdhr->owner, 1); + inc_goodpost(fhdr->owner, 1); } #endif lastrecommend = now; |