From c120944e67d5f657c3adb1fc1e97a39466aa1473 Mon Sep 17 00:00:00 2001 From: in2 Date: Wed, 23 Feb 2005 08:51:47 +0000 Subject: fix bug git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2525 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/shmctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/shmctl.c b/util/shmctl.c index fcefa79d..3801be65 100644 --- a/util/shmctl.c +++ b/util/shmctl.c @@ -379,7 +379,7 @@ inline void utmpsort(int sortall) SHM->sorted[ns][0], sizeof(int) * count); qsort(SHM->sorted[ns][6], count, sizeof(int), cmputmpuid); qsort(SHM->sorted[ns][7], count, sizeof(int), cmputmppid); - if( sortall !=-1){ // FIXME why !=-1? it never equals to -1 ! + if( sortall ){ memcpy(SHM->sorted[ns][1], SHM->sorted[ns][0], sizeof(int) * count); memcpy(SHM->sorted[ns][2], @@ -761,7 +761,7 @@ int SHMinit(int argc, char **argv) #ifdef NOKILLWATERBALL puts("nkwbd..."); - nkwbd(1, NULL); + nkwbd(1, argv); #endif return 0; -- cgit v1.2.3