Make the syscall "code" variable unsigned - we don't test for negative

values when range checking.
This commit is contained in:
martin 2006-11-01 22:37:35 +00:00
parent 3f78162b5c
commit 0a67366540
1 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: syscall.c,v 1.29 2006/07/19 21:11:43 ad Exp $ */
/* $NetBSD: syscall.c,v 1.30 2006/11/01 22:37:35 martin Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -114,7 +114,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.29 2006/07/19 21:11:43 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: syscall.c,v 1.30 2006/11/01 22:37:35 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -183,7 +183,8 @@ EMULNAME(syscall_plain)(struct lwp *l, u_int status, u_int cause, u_int opc)
mips_reg_t ov0;
size_t nsaved, nargs;
const struct sysent *callp;
int code, error;
int error;
u_int code;
LWP_CACHE_CREDS(l, p);
@ -324,7 +325,8 @@ EMULNAME(syscall_fancy)(struct lwp *l, u_int status, u_int cause, u_int opc)
mips_reg_t ov0;
size_t nsaved, nargs;
const struct sysent *callp;
int code, error;
int error;
u_int code;
LWP_CACHE_CREDS(l, p);