On 24 Jan 2000, Satoshi - Ports Wraith - Asami wrote:
> Anyway, I have committed the following patch submitted by Alexander
> Langer. It has a nice feature of working for both -current and
> -stable without any additional #ifdef's. I hope it's ok.
>
> Satoshi
> =======
> --- lib/libxview/notify/ntfy.h.orig Tue Jun 29 07:18:14 1993
> +++ lib/libxview/notify/ntfy.h Mon Jan 10 15:50:53 2000
> @@ -188,7 +197,12 @@
> #define sigisempty(s) (!(((s)->__sigbits[0]) | ((s)->__sigbits[1]) \
> | ((s)->__sigbits[2]) | ((s)->__sigbits[3])))
> #else
> -#define sigisempty(s) (!(*(s)))
> +static int
> +sigisempty (sigset_t *s) {
> + sigset_t n;
> + bzero(&n, sizeof(sigset_t));
> + return (! memcmp(&n, s, sizeof(sigset_t)));
> +}
> #endif
>
> /*
>
Suggestion: use sigemptyset() rather than bzero().
Kelly
--
Kelly Yancey - [EMAIL PROTECTED] - Richmond, VA
Analyst / E-business Development, Bell Industries http://www.bellind.com/
Maintainer, BSD Driver Database http://www.posi.net/freebsd/drivers/
Coordinator, Team FreeBSD http://www.posi.net/freebsd/Team-FreeBSD/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message