summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-10-10 04:36:12 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-10-10 04:36:12 +0000
commitd58e96b237e722b2df95155b0a86461ce738354b (patch)
tree06510ebc8f03b9d2423a61ece4e9a3f9c029240c /sys/arch/i386
parentdb1478c490de7e085dc2895048f0090ef0343386 (diff)
Change argsize from size_t to short, since it only stores a short
value. Fixes a format string error. Pointed out by deraadt, OK miod.
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c
index 26f1b20fd9b..65514c1d73f 100644
--- a/sys/arch/i386/i386/trap.c
+++ b/sys/arch/i386/i386/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.85 2007/06/26 13:39:02 tom Exp $ */
+/* $OpenBSD: trap.c,v 1.86 2007/10/10 04:36:11 ray Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
/*-
@@ -581,11 +581,11 @@ syscall(struct trapframe frame)
struct sysent *callp;
struct proc *p;
int orig_error, error, opc, nsys;
- size_t argsize;
register_t code, args[8], rval[2];
#ifdef DIAGNOSTIC
int ocpl = lapic_tpr;
#endif
+ short argsize;
uvmexp.syscalls++;
#ifdef DIAGNOSTIC