diff options
author | David McCullough <davidm@snapgear.com> | 2001-08-09 12:08:51 +0000 |
---|---|---|
committer | David McCullough <davidm@snapgear.com> | 2001-08-09 12:08:51 +0000 |
commit | cc0664cff3f0cb0c18c9f3deaa1ec40185d50c0b (patch) | |
tree | 4f35c9ef40e43e722a6586bfa13f59c0e8d7afeb | |
parent | 60acedb05a0ff950b3c197be90f3111f8e6980a3 (diff) |
Added sigset_t casts so we behave like the other platforms.
-rw-r--r-- | libc/sysdeps/linux/m68k/bits/sigset.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/m68k/bits/sigset.h b/libc/sysdeps/linux/m68k/bits/sigset.h index dcdc924c2..ccc6431a1 100644 --- a/libc/sysdeps/linux/m68k/bits/sigset.h +++ b/libc/sysdeps/linux/m68k/bits/sigset.h @@ -46,14 +46,14 @@ typedef unsigned long __sigset_t; # define __sigmask(sig) (1L << ((sig) - 1)) # if defined __GNUC__ && __GNUC__ >= 2 -# define __sigemptyset(set) (*(set) = 0) -# define __sigfillset(set) (*(set) = ~0) +# define __sigemptyset(set) (*((sigset_t *) set) = 0) +# define __sigfillset(set) (*((sigset_t *) set) = ~0) # ifdef __USE_GNU /* The POSIX does not specify for handling the whole signal set in one command. This is often wanted and so we define three more functions here. */ -# define __sigisemptyset(set) (*(set) == 0) +# define __sigisemptyset(set) (*((sigset_t *) set) == 0) # define __sigandset(dest, left, right) (*(dest) = *(left) & *(right)) # define __sigorset(dest, left, right) (*(dest) = *(left) | *(right)) # endif @@ -62,8 +62,8 @@ typedef unsigned long __sigset_t; /* These functions needn't check for a bogus signal number -- error checking is done in the non __ versions. */ -# define __sigismember(set, sig) (*(set) & (1L << ((sig)-1))) -# define __sigaddset(set, sig) (*(set) |= (1L << ((sig)-1))) -# define __sigdelset(set, sig) (*(set) &= ~(1L << ((sig)-1))) +# define __sigismember(set, sig) (*((sigset_t *) set) & (1L << ((sig)-1))) +# define __sigaddset(set, sig) (*((sigset_t *) set) |= (1L << ((sig)-1))) +# define __sigdelset(set, sig) (*((sigset_t *) set) &= ~(1L << ((sig)-1))) #endif /* ! _SIGSET_H_fns. */ |