From 67cfe98259eff4e68469e90beb24c0fed9d54d2e Mon Sep 17 00:00:00 2001 From: kcwu Date: Thu, 16 Jan 2003 13:52:25 +0000 Subject: who wrote this.... @@ ptr = pool; i = 0; do { i++; } while (++ptr < v); return i; git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@610 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/gomo.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/pttbbs/mbbsd/gomo.c b/pttbbs/mbbsd/gomo.c index 7822b090..bf9c9b97 100644 --- a/pttbbs/mbbsd/gomo.c +++ b/pttbbs/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 -- cgit v1.2.3