summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-07 08:10:47 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-07 08:10:47 +0800
commitc5ea25625c4cf0d08f7b709bcf33eafa8bb87879 (patch)
tree47423f1a2fc22cf0463440257edb05320bdf3862
parent2044b1df081faa18372f8edcb1b4f575b6b4312b (diff)
downloadpttbbs-c5ea25625c4cf0d08f7b709bcf33eafa8bb87879.tar
pttbbs-c5ea25625c4cf0d08f7b709bcf33eafa8bb87879.tar.gz
pttbbs-c5ea25625c4cf0d08f7b709bcf33eafa8bb87879.tar.bz2
pttbbs-c5ea25625c4cf0d08f7b709bcf33eafa8bb87879.tar.lz
pttbbs-c5ea25625c4cf0d08f7b709bcf33eafa8bb87879.tar.xz
pttbbs-c5ea25625c4cf0d08f7b709bcf33eafa8bb87879.tar.zst
pttbbs-c5ea25625c4cf0d08f7b709bcf33eafa8bb87879.zip
fix last commit bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@301 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index 9ee6286b..1c22b0e3 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -1,4 +1,4 @@
-/* $Id: cache.c,v 1.33 2002/06/07 00:08:47 in2 Exp $ */
+/* $Id: cache.c,v 1.34 2002/06/07 00:10:47 in2 Exp $ */
#include "bbs.h"
#ifndef __FreeBSD__
@@ -466,7 +466,7 @@ userinfo_t *search_ulistn(int uid, int unum)
if( j != 0 ){
for( ; i > 0 && uid == ulist[i - 1]->uid ; --i )
; /* 指到第一筆 */
- if( ulist[i + unum - 1] 1= NULL && uid == ulist[i + num - 1]->uid )
+ if( ulist[i + unum - 1]!=NULL && uid==ulist[i + unum - 1]->uid )
return (userinfo_t *)(ulist[i + unum - 1]);
break; /* 超過範圍 */
}
@@ -798,7 +798,7 @@ int haspostperm(char *bname) {
/* PTT cache */
/*-------------------------------------------------------*/
/* cachefor 動態看版 */
-static void reload_pttcache()
+void reload_pttcache()
{
if( SHM->Pbusystate )
safe_sleep(1);