From f09df194f3aab8107b55918f87eabdcbbff0763c Mon Sep 17 00:00:00 2001 From: in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> Date: Wed, 6 Aug 2003 06:15:51 +0000 Subject: * Fix the bug that sometime after reading old articles, the newer one will be set unread. * Remove global variablt brc_name from bourd.c. * Change prototypes of brc_unread, brc_initial, and brc_addlist. Add const modifier. * Add commants in brc_* funtions. by scw git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1085 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/proto.h b/include/proto.h index ee59329d..5e902289 100644 --- a/include/proto.h +++ b/include/proto.h @@ -1,4 +1,4 @@ -/* $Id: proto.h,v 1.46 2003/07/20 00:55:34 in2 Exp $ */ +/* $Id$ */ #ifndef INCLUDE_PROTO_H #define INCLUDE_PROTO_H @@ -63,8 +63,8 @@ int board_digest(); /* board */ #define setutmpbid(bid) currutmp->brc_id=bid; -int brc_unread(char *fname, int bnum, int *blist); -int brc_initial(char *boardname); +int brc_unread(const char *fname, int bnum, const int *blist); +int brc_initial(const char *boardname); void brc_update(); int Ben_Perm(boardheader_t *bptr); int New(); @@ -92,7 +92,7 @@ boardheader_t *getbcache(int bid); int apply_boards(int (*func)(boardheader_t *)); int haspostperm(char *bname); void inbtotal(int bid, int add); -void brc_addlist(char *fname); +void brc_addlist(const char *fname); void setbtotal(int bid); unsigned int safe_sleep(unsigned int seconds); int apply_ulist(int (*fptr)(userinfo_t *)); -- cgit v1.2.3