Make it compile with -Wextra
This commit is contained in:
parent
14e2e5cf6a
commit
dda2fa3e76
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: svr4_misc.c,v 1.119 2006/10/12 01:30:49 christos Exp $ */
|
||||
/* $NetBSD: svr4_misc.c,v 1.120 2006/10/16 20:20:21 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 The NetBSD Foundation, Inc.
|
||||
|
@ -44,7 +44,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: svr4_misc.c,v 1.119 2006/10/12 01:30:49 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: svr4_misc.c,v 1.120 2006/10/16 20:20:21 martin Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -925,7 +925,7 @@ svr4_sys_ulimit(l, v, retval)
|
|||
if (r == -1)
|
||||
r = 0x7fffffff;
|
||||
r += (long) vm->vm_daddr;
|
||||
if (r < 0)
|
||||
if (r > 0x7fffffff)
|
||||
r = 0x7fffffff;
|
||||
*retval = r;
|
||||
return 0;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: svr4_32_misc.c,v 1.38 2006/09/17 08:41:31 yamt Exp $ */
|
||||
/* $NetBSD: svr4_32_misc.c,v 1.39 2006/10/16 20:18:55 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 The NetBSD Foundation, Inc.
|
||||
|
@ -44,7 +44,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: svr4_32_misc.c,v 1.38 2006/09/17 08:41:31 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: svr4_32_misc.c,v 1.39 2006/10/16 20:18:55 martin Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -955,7 +955,7 @@ svr4_32_sys_ulimit(l, v, retval)
|
|||
if (r == -1)
|
||||
r = 0x7fffffff;
|
||||
r += (long) vm->vm_daddr;
|
||||
if (r < 0)
|
||||
if (r > 0x7fffffff)
|
||||
r = 0x7fffffff;
|
||||
*retval = r;
|
||||
return 0;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: svr4_32_net.c,v 1.12 2005/12/11 12:20:26 christos Exp $ */
|
||||
/* $NetBSD: svr4_32_net.c,v 1.13 2006/10/16 20:18:55 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 The NetBSD Foundation, Inc.
|
||||
|
@ -41,7 +41,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: svr4_32_net.c,v 1.12 2005/12/11 12:20:26 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: svr4_32_net.c,v 1.13 2006/10/16 20:18:55 martin Exp $");
|
||||
|
||||
#define COMPAT_SVR4 1
|
||||
|
||||
|
@ -104,7 +104,7 @@ int svr4_ptm_alloc __P((struct proc *));
|
|||
|
||||
static const struct fileops svr4_32_netops = {
|
||||
soo_read, soo_write, soo_ioctl, soo_fcntl, soo_poll,
|
||||
soo_stat, svr4_soo_close
|
||||
soo_stat, svr4_soo_close, D_OTHER
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: svr4_32_signal.c,v 1.15 2005/12/24 20:45:09 perry Exp $ */
|
||||
/* $NetBSD: svr4_32_signal.c,v 1.16 2006/10/16 20:18:55 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: svr4_32_signal.c,v 1.15 2005/12/24 20:45:09 perry Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: svr4_32_signal.c,v 1.16 2006/10/16 20:18:55 martin Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_svr4.h"
|
||||
|
@ -280,17 +280,19 @@ svr4_32_to_native_sigaction(ssa, bsa)
|
|||
bsa->sa_flags |= SA_RESETHAND;
|
||||
if ((ssa->svr4_32_sa_flags & SVR4_SA_RESTART) != 0)
|
||||
bsa->sa_flags |= SA_RESTART;
|
||||
if ((ssa->svr4_32_sa_flags & SVR4_SA_SIGINFO) != 0)
|
||||
if ((ssa->svr4_32_sa_flags & SVR4_SA_SIGINFO) != 0) {
|
||||
DPRINTF(("svr4_to_native_sigaction: SA_SIGINFO ignored\n"));
|
||||
}
|
||||
if ((ssa->svr4_32_sa_flags & SVR4_SA_NODEFER) != 0)
|
||||
bsa->sa_flags |= SA_NODEFER;
|
||||
if ((ssa->svr4_32_sa_flags & SVR4_SA_NOCLDWAIT) != 0)
|
||||
bsa->sa_flags |= SA_NOCLDWAIT;
|
||||
if ((ssa->svr4_32_sa_flags & SVR4_SA_NOCLDSTOP) != 0)
|
||||
bsa->sa_flags |= SA_NOCLDSTOP;
|
||||
if ((ssa->svr4_32_sa_flags & ~SVR4_SA_ALLBITS) != 0)
|
||||
if ((ssa->svr4_32_sa_flags & ~SVR4_SA_ALLBITS) != 0) {
|
||||
DPRINTF(("svr4_32_to_native_sigaction: extra bits %x ignored\n",
|
||||
ssa->svr4_32_sa_flags & ~SVR4_SA_ALLBITS));
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue