summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-28 05:16:12 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-08-28 05:16:12 +0800
commit531dfe7dbfb67e2aef5598ea80da034a2fcf70eb (patch)
tree72d167a4d001fd8655531b65df7d1cc830d343d9
parenta11ff792fe34106ecf032be1f0f1c3fcbd5b1e6b (diff)
downloadpttbbs-531dfe7dbfb67e2aef5598ea80da034a2fcf70eb.tar
pttbbs-531dfe7dbfb67e2aef5598ea80da034a2fcf70eb.tar.gz
pttbbs-531dfe7dbfb67e2aef5598ea80da034a2fcf70eb.tar.bz2
pttbbs-531dfe7dbfb67e2aef5598ea80da034a2fcf70eb.tar.lz
pttbbs-531dfe7dbfb67e2aef5598ea80da034a2fcf70eb.tar.xz
pttbbs-531dfe7dbfb67e2aef5598ea80da034a2fcf70eb.tar.zst
pttbbs-531dfe7dbfb67e2aef5598ea80da034a2fcf70eb.zip
remove sex sort function
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@501 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/cache.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c
index ccb8ff33..32da5a7f 100644
--- a/mbbsd/cache.c
+++ b/mbbsd/cache.c
@@ -1,4 +1,4 @@
-/* $Id: cache.c,v 1.50 2002/08/23 18:01:30 in2 Exp $ */
+/* $Id: cache.c,v 1.51 2002/08/27 21:16:12 kcwu Exp $ */
#include "bbs.h"
#ifndef __FreeBSD__
@@ -373,15 +373,6 @@ cmputmpfive(const void *i, const void *j)
return (*((userinfo_t **) i))->five_tie - (*((userinfo_t **) j))->five_tie;
}
-#if 0
-static int
-cmputmpsex(const void *i, const void *j)
-{
- static int ladyfirst[] = {1, 0, 1, 0, 1, 0, 3, 3};
- return ladyfirst[(*(userinfo_t **) i)->sex & 07] -
- ladyfirst[(*(userinfo_t **) j)->sex & 07];
-}
-#endif
static int
cmputmppid(const void *i, const void *j)
{
@@ -431,7 +422,6 @@ sort_utmp()
qsort(SHM->sorted[ns][2], count, sizeof(userinfo_t *), cmputmpidle);
qsort(SHM->sorted[ns][3], count, sizeof(userinfo_t *), cmputmpfrom);
qsort(SHM->sorted[ns][4], count, sizeof(userinfo_t *), cmputmpfive);
- //qsort(SHM->sorted[ns][5], count, sizeof(userinfo_t *), cmputmpsex);
qsort(SHM->sorted[ns][6], count, sizeof(userinfo_t *), cmputmpuid);
qsort(SHM->sorted[ns][7], count, sizeof(userinfo_t *), cmputmppid);
SHM->currsorted = ns;