diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-23 16:51:47 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-02-23 16:51:47 +0800 |
commit | c120944e67d5f657c3adb1fc1e97a39466aa1473 (patch) | |
tree | f431814a5bdd2259f9d6672bf747aaad47bcc4a3 /util | |
parent | 073cb050ba1be5e0fb9ce5bab8cfd79dbaea65f9 (diff) | |
download | pttbbs-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
Diffstat (limited to 'util')
-rw-r--r-- | util/shmctl.c | 4 |
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; |