Make it compile again; it had an empty if body due the the DPRINTF and gcc

complained about it.
This commit is contained in:
reinoud 2006-10-19 15:11:59 +00:00
parent 17e6581dbd
commit 98d17cde9d

View File

@ -1,4 +1,4 @@
/* $NetBSD: darwin_signal.c,v 1.21 2005/12/11 12:19:56 christos Exp $ */ /* $NetBSD: darwin_signal.c,v 1.22 2006/10/19 15:11:59 reinoud Exp $ */
/*- /*-
* Copyright (c) 2002 The NetBSD Foundation, Inc. * Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: darwin_signal.c,v 1.21 2005/12/11 12:19:56 christos Exp $"); __KERNEL_RCSID(0, "$NetBSD: darwin_signal.c,v 1.22 2006/10/19 15:11:59 reinoud Exp $");
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
@ -94,9 +94,10 @@ darwin_sys_sigaction(l, v, retval)
sa.sa_handler = dsa.darwin_sa_handler.__sa_handler; sa.sa_handler = dsa.darwin_sa_handler.__sa_handler;
native_sigset13_to_sigset(&dsa.darwin_sa_mask, &sa.sa_mask); native_sigset13_to_sigset(&dsa.darwin_sa_mask, &sa.sa_mask);
if (dsa.darwin_sa_flags & ~DARWIN_SA_ALLBITS) if (dsa.darwin_sa_flags & ~DARWIN_SA_ALLBITS) {
DPRINTF(("darwin_sys_sigaction: ignoring bits (flags = %x)\n", DPRINTF(("darwin_sys_sigaction: ignoring bits (flags = %x)\n",
dsa.darwin_sa_flags)); dsa.darwin_sa_flags));
}
sa.sa_flags = dsa.darwin_sa_flags & DARWIN_SA_ALLBITS; sa.sa_flags = dsa.darwin_sa_flags & DARWIN_SA_ALLBITS;
if ((error = copyout(&sa, nsa, sizeof(sa))) != 0) if ((error = copyout(&sa, nsa, sizeof(sa))) != 0)