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 | 91373b6759ef927b47de4838c94f8859f5d2bfaf (patch) | |
tree | 2f330727b91bbde4df90d706a7c87488f91af72c | |
parent | 0a46fb4aa9c0ea2d74d122972a306af19aea82b4 (diff) | |
download | pttbbs-91373b6759ef927b47de4838c94f8859f5d2bfaf.tar pttbbs-91373b6759ef927b47de4838c94f8859f5d2bfaf.tar.gz pttbbs-91373b6759ef927b47de4838c94f8859f5d2bfaf.tar.bz2 pttbbs-91373b6759ef927b47de4838c94f8859f5d2bfaf.tar.lz pttbbs-91373b6759ef927b47de4838c94f8859f5d2bfaf.tar.xz pttbbs-91373b6759ef927b47de4838c94f8859f5d2bfaf.tar.zst pttbbs-91373b6759ef927b47de4838c94f8859f5d2bfaf.zip |
make compiler happy
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@641 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/cache.c b/pttbbs/mbbsd/cache.c index 7016239b..5bcecb08 100644 --- a/pttbbs/mbbsd/cache.c +++ b/pttbbs/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; |