about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-03 01:45:19 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2017-09-03 01:45:19 +0200
commit06cf9d31d7caa408b35f194cdbdc17462eb935c2 (patch)
tree1ec2e9892e40db09500b6265f0daa7bc62a96262 /sysdeps
parentb794e16bcc9426e9e05ec465c6c8bab2902a50ed (diff)
downloadglibc-06cf9d31d7caa408b35f194cdbdc17462eb935c2.tar.gz
glibc-06cf9d31d7caa408b35f194cdbdc17462eb935c2.tar.xz
glibc-06cf9d31d7caa408b35f194cdbdc17462eb935c2.zip
hurd: Fix sigsetops.h macros
	* sysdeps/generic/sigsetops.h: Remove spurious #endif.
	(__sigismember, __sigaddset, __sigdelset): Fix referencing set
	parameter.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/sigsetops.h6
1 files changed, 3 insertions, 3 deletions
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;					\
   }))