From 983c3a4eefe0366ac29cd0ad90a859774500302c Mon Sep 17 00:00:00 2001 From: piaip Date: Sat, 24 May 2008 03:28:02 +0000 Subject: - 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 --- util/shmctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/shmctl.c') 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), -- cgit v1.2.3