[haiku-commits] r41704 - haiku/branches/developer/bonefish/signals/src/system/libroot/posix/signal

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 24 May 2011 03:39:27 +0200 (CEST)

Author: bonefish
Date: 2011-05-24 03:39:27 +0200 (Tue, 24 May 2011)
New Revision: 41704
Changeset: https://dev.haiku-os.org/changeset/41704

Modified:
   
haiku/branches/developer/bonefish/signals/src/system/libroot/posix/signal/sigset_accessors.cpp
Log:
* Fixed sigdelset() implementations.
* Mini style cleanup.


Modified: 
haiku/branches/developer/bonefish/signals/src/system/libroot/posix/signal/sigset_accessors.cpp
===================================================================
--- 
haiku/branches/developer/bonefish/signals/src/system/libroot/posix/signal/sigset_accessors.cpp
      2011-05-24 01:38:43 UTC (rev 41703)
+++ 
haiku/branches/developer/bonefish/signals/src/system/libroot/posix/signal/sigset_accessors.cpp
      2011-05-24 01:39:27 UTC (rev 41704)
@@ -47,7 +47,7 @@
                return -1;
        }
 
-       return (*set & SIGNAL_TO_MASK(signal)) != 0 ? 1 : 0 ;
+       return (*set & SIGNAL_TO_MASK(signal)) != 0 ? 1 : 0;
 }
 
 
@@ -72,7 +72,7 @@
                return -1;
        }
 
-       *set |= ~SIGNAL_TO_MASK(signal);
+       *set &= ~SIGNAL_TO_MASK(signal);
        return 0;
 }
 
@@ -104,7 +104,7 @@
                return -1;
        }
 
-       return (*set & SIGNAL_TO_MASK(signal)) != 0 ? 1 : 0 ;
+       return (*set & SIGNAL_TO_MASK(signal)) != 0 ? 1 : 0;
 }
 
 
@@ -129,7 +129,7 @@
                return -1;
        }
 
-       *set |= ~SIGNAL_TO_MASK(signal);
+       *set &= ~SIGNAL_TO_MASK(signal);
        return 0;
 }
 


Other related posts:

  • » [haiku-commits] r41704 - haiku/branches/developer/bonefish/signals/src/system/libroot/posix/signal - ingo_weinhold