From cc0664cff3f0cb0c18c9f3deaa1ec40185d50c0b Mon Sep 17 00:00:00 2001 From: David McCullough Date: Thu, 9 Aug 2001 12:08:51 +0000 Subject: Added sigset_t casts so we behave like the other platforms. --- libc/sysdeps/linux/m68k/bits/sigset.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libc/sysdeps') 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. */ -- cgit v1.2.3