diff mbox series

[hurd,commited] hurd: Fix sigsetops.h macros

Message ID 20170902235106.26351-1-samuel.thibault@ens-lyon.org
State New
Headers show
Series [hurd,commited] hurd: Fix sigsetops.h macros | expand

Commit Message

Samuel Thibault Sept. 2, 2017, 11:51 p.m. UTC
* sysdeps/generic/sigsetops.h: Remove spurious #endif.
	(__sigismember, __sigaddset, __sigdelset): Fix referencing set
	parameter.
---
 ChangeLog                   | 2 ++
 sysdeps/generic/sigsetops.h | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/ChangeLog b/ChangeLog
index ba48df083d..912a3ce4b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@ 
 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
 
 	* sysdeps/generic/sigsetops.h: Remove spurious #endif.
+	(__sigismember, __sigaddset, __sigdelset): Fix referencing set
+	parameter.
 
 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
 
diff --git a/sysdeps/generic/sigsetops.h b/sysdeps/generic/sigsetops.h
index ea2c5b5767..6d1c004b04 100644
--- a/sysdeps/generic/sigsetops.h
+++ b/sysdeps/generic/sigsetops.h
@@ -56,20 +56,20 @@ 
 # define __sigismember(set, sig)		\
   (__extension__ ({				\
     __sigset_t __mask = __sigmask (sig);	\
-    (set) & __mask ? 1 : 0;			\
+    *(set) & __mask ? 1 : 0;			\
   }))
 
 # define __sigaddset(set, sig)			\
   (__extension__ ({				\
     __sigset_t __mask = __sigmask (sig);	\
-    (set) |= __mask;				\
+    *(set) |= __mask;				\
     (void)0;					\
   }))
 
 # define __sigdelset(set, sig)			\
   (__extension__ ({				\
     __sigset_t __mask = __sigmask (sig);	\
-    (set) &= ~__mask;				\
+    *(set) &= ~__mask;				\
     (void)0;					\
   }))