summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-24 11:28:02 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-24 11:28:02 +0800
commit983c3a4eefe0366ac29cd0ad90a859774500302c (patch)
treeb1851ecc4756c4f7ac420b933d7eb390bb52fda6 /util
parentee8292c5a2efcc1078d2023654f27df97d626c25 (diff)
downloadpttbbs-983c3a4eefe0366ac29cd0ad90a859774500302c.tar
pttbbs-983c3a4eefe0366ac29cd0ad90a859774500302c.tar.gz
pttbbs-983c3a4eefe0366ac29cd0ad90a859774500302c.tar.bz2
pttbbs-983c3a4eefe0366ac29cd0ad90a859774500302c.tar.lz
pttbbs-983c3a4eefe0366ac29cd0ad90a859774500302c.tar.xz
pttbbs-983c3a4eefe0366ac29cd0ad90a859774500302c.tar.zst
pttbbs-983c3a4eefe0366ac29cd0ad90a859774500302c.zip
- make "sort by ip" only, since this is more like the way in old day.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4321 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util')
-rw-r--r--util/shmctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/shmctl.c b/util/shmctl.c
index e50fef43..3372d9f0 100644
--- a/util/shmctl.c
+++ b/util/shmctl.c
@@ -280,8 +280,8 @@ cmputmpidle(const void * i, const void * j)
static int
cmputmpfrom(const void * i, const void * j)
{
- int r = strcmp(SHM->uinfo[*(int*)i].from, SHM->uinfo[*(int*)j].from);
- if (r) return r;
+ // int r = strcmp(SHM->uinfo[*(int*)i].from, SHM->uinfo[*(int*)j].from);
+ // if (r) return r;
// *** from_ip (in_addr_t) is big endian network number.
return memcmp(&(SHM->uinfo[*(int*)i].from_ip), &(SHM->uinfo[*(int*)j].from_ip),