From d58e96b237e722b2df95155b0a86461ce738354b Mon Sep 17 00:00:00 2001 From: Ray Lai Date: Wed, 10 Oct 2007 04:36:12 +0000 Subject: 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. --- sys/arch/i386/i386/trap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/i386') 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 -- cgit v1.2.3