summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-22 22:06:15 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-22 22:06:15 +0000
commitb4da92e48e66b1b566d7c30b3449daf8aca621e2 (patch)
tree79e56a0193f4cf586a615103e052b9aa4d7d9af3 /sys/arch/i386/isa
parentbdbcace6a476ce0b606f1e75e19d4dac7aa6db7d (diff)
GCC 2.8 Wall
Diffstat (limited to 'sys/arch/i386/isa')
-rw-r--r--sys/arch/i386/isa/npx.c6
-rw-r--r--sys/arch/i386/isa/pcvt/pcvt_kbd.c6
2 files changed, 7 insertions, 5 deletions
diff --git a/sys/arch/i386/isa/npx.c b/sys/arch/i386/isa/npx.c
index ec871cad0e3..a3b1966553c 100644
--- a/sys/arch/i386/isa/npx.c
+++ b/sys/arch/i386/isa/npx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: npx.c,v 1.14 1997/04/17 03:44:52 tholo Exp $ */
+/* $OpenBSD: npx.c,v 1.15 1998/02/22 22:06:11 niklas Exp $ */
/* $NetBSD: npx.c,v 1.57 1996/05/12 23:12:24 mycroft Exp $ */
#if 0
@@ -376,6 +376,7 @@ npxintr(arg)
register struct save87 *addr;
struct intrframe *frame = arg;
int code;
+ union sigval sv;
cnt.v_trap++;
iprintf(("Intr"));
@@ -461,7 +462,8 @@ npxintr(arg)
code = FPE_FLTRES;
else
code = 0; /* XXX unknown */
- trapsignal(p, SIGFPE, T_ARITHTRAP, code, frame->if_eip);
+ sv.sival_int = frame->if_eip;
+ trapsignal(p, SIGFPE, T_ARITHTRAP, code, sv);
} else {
/*
* Nested interrupt. These losers occur when:
diff --git a/sys/arch/i386/isa/pcvt/pcvt_kbd.c b/sys/arch/i386/isa/pcvt/pcvt_kbd.c
index 81ced849440..ef5d505c0b7 100644
--- a/sys/arch/i386/isa/pcvt/pcvt_kbd.c
+++ b/sys/arch/i386/isa/pcvt/pcvt_kbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcvt_kbd.c,v 1.13 1998/02/05 16:48:34 deraadt Exp $ */
+/* $OpenBSD: pcvt_kbd.c,v 1.14 1998/02/22 22:06:14 niklas Exp $ */
/*
* Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch.
@@ -619,7 +619,7 @@ kbd_code_init1(void)
static
void ovlinit(int force)
{
- register i;
+ int i;
if(force || ovlinitflag==0)
{
@@ -1634,7 +1634,7 @@ rmkeydef(int key)
static int
setkeydef(Ovl_tbl *data)
{
- register i;
+ int i;
if( data->keynum > MAXKEYNUM ||
(data->type & KBD_MASK) == KBD_BREAK ||