summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-23 16:51:47 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-23 16:51:47 +0800
commitc120944e67d5f657c3adb1fc1e97a39466aa1473 (patch)
treef431814a5bdd2259f9d6672bf747aaad47bcc4a3
parent073cb050ba1be5e0fb9ce5bab8cfd79dbaea65f9 (diff)
downloadpttbbs-c120944e67d5f657c3adb1fc1e97a39466aa1473.tar
pttbbs-c120944e67d5f657c3adb1fc1e97a39466aa1473.tar.gz
pttbbs-c120944e67d5f657c3adb1fc1e97a39466aa1473.tar.bz2
pttbbs-c120944e67d5f657c3adb1fc1e97a39466aa1473.tar.lz
pttbbs-c120944e67d5f657c3adb1fc1e97a39466aa1473.tar.xz
pttbbs-c120944e67d5f657c3adb1fc1e97a39466aa1473.tar.zst
pttbbs-c120944e67d5f657c3adb1fc1e97a39466aa1473.zip
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2525 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--util/shmctl.c4
1 files 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;