From 06cf9d31d7caa408b35f194cdbdc17462eb935c2 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 3 Sep 2017 01:45:19 +0200 Subject: hurd: Fix sigsetops.h macros * sysdeps/generic/sigsetops.h: Remove spurious #endif. (__sigismember, __sigaddset, __sigdelset): Fix referencing set parameter. --- sysdeps/generic/sigsetops.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysdeps') 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; \ })) -- cgit 1.4.1