diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-01-24 02:21:06 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-01-24 02:21:06 +0800 |
commit | 003bc20d03d4fd330836d38112bc33ce89883cc9 (patch) | |
tree | 1ee2df2d11b82c8563ad248f41c985e4c4488d1d /mbbsd/cache.c | |
parent | a8f286bf0dfb9eea2dfc4fc8c93d4975d366d0a5 (diff) | |
download | pttbbs-003bc20d03d4fd330836d38112bc33ce89883cc9.tar pttbbs-003bc20d03d4fd330836d38112bc33ce89883cc9.tar.gz pttbbs-003bc20d03d4fd330836d38112bc33ce89883cc9.tar.bz2 pttbbs-003bc20d03d4fd330836d38112bc33ce89883cc9.tar.lz pttbbs-003bc20d03d4fd330836d38112bc33ce89883cc9.tar.xz pttbbs-003bc20d03d4fd330836d38112bc33ce89883cc9.tar.zst pttbbs-003bc20d03d4fd330836d38112bc33ce89883cc9.zip |
make compiler happy
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@641 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/cache.c')
-rw-r--r-- | mbbsd/cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c index 7016239b..5bcecb08 100644 --- a/mbbsd/cache.c +++ b/mbbsd/cache.c @@ -1,4 +1,4 @@ -/* $Id: cache.c,v 1.55 2003/01/17 10:26:22 kcwu Exp $ */ +/* $Id: cache.c,v 1.56 2003/01/23 18:21:06 in2 Exp $ */ #include "bbs.h" #ifndef __FreeBSD__ @@ -556,7 +556,7 @@ count_logins(int uid, int show) register int i = 0, j, start = 0, end = SHM->UTMPnumber - 1, count; register userinfo_t **ulist; if (end == -1) - return NULL; + return 0; ulist = SHM->sorted[SHM->currsorted][6]; for (i = ((start + end) / 2);; i = (start + end) / 2) { j = uid - ulist[i]->uid; |