summaryrefslogtreecommitdiffstats
path: root/mbbsd/gomo.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-01-16 21:52:25 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-01-16 21:52:25 +0800
commit0ade0762a9549675b63ba71e671d851679c480d0 (patch)
tree52e270a5bab4d397d4a07658104efc9693280cb6 /mbbsd/gomo.c
parentb16cf231ad945aef3af34e0e7e864ec53052ae71 (diff)
downloadpttbbs-0ade0762a9549675b63ba71e671d851679c480d0.tar
pttbbs-0ade0762a9549675b63ba71e671d851679c480d0.tar.gz
pttbbs-0ade0762a9549675b63ba71e671d851679c480d0.tar.bz2
pttbbs-0ade0762a9549675b63ba71e671d851679c480d0.tar.lz
pttbbs-0ade0762a9549675b63ba71e671d851679c480d0.tar.xz
pttbbs-0ade0762a9549675b63ba71e671d851679c480d0.tar.zst
pttbbs-0ade0762a9549675b63ba71e671d851679c480d0.zip
who wrote this.... @@
ptr = pool; i = 0; do { i++; } while (++ptr < v); return i; git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@610 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/gomo.c')
-rw-r--r--mbbsd/gomo.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/mbbsd/gomo.c b/mbbsd/gomo.c
index 7822b090..bf9c9b97 100644
--- a/mbbsd/gomo.c
+++ b/mbbsd/gomo.c
@@ -1,4 +1,4 @@
-/* $Id: gomo.c,v 1.9 2002/07/22 19:02:00 in2 Exp $ */
+/* $Id: gomo.c,v 1.10 2003/01/16 13:52:25 kcwu Exp $ */
#include "bbs.h"
static char *chess[] = {"¡´", "¡³"};
@@ -85,15 +85,7 @@ HO_log(char *user)
static int
countgomo()
{
- Horder_t *ptr;
- int i;
-
- ptr = pool;
- i = 0;
- do {
- i++;
- } while (++ptr < v);
- return i;
+ return v-pool;
}
static int