Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress/sys/arch/i386/ldt delete bogus sigcontext
details: https://anonhg.NetBSD.org/src/rev/6de3b28be90c
branches: trunk
changeset: 551818:6de3b28be90c
user: christos <christos%NetBSD.org@localhost>
date: Fri Sep 12 16:18:37 2003 +0000
description:
delete bogus sigcontext
diffstat:
regress/sys/arch/i386/ldt/testldt.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 940e442812ce -r 6de3b28be90c regress/sys/arch/i386/ldt/testldt.c
--- a/regress/sys/arch/i386/ldt/testldt.c Fri Sep 12 16:18:08 2003 +0000
+++ b/regress/sys/arch/i386/ldt/testldt.c Fri Sep 12 16:18:37 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: testldt.c,v 1.11 2003/08/11 17:19:51 drochner Exp $ */
+/* $NetBSD: testldt.c,v 1.12 2003/09/12 16:18:37 christos Exp $ */
/*-
* Copyright (c) 1993 The NetBSD Foundation, Inc.
@@ -197,9 +197,9 @@
/* ARGSUSED */
static void
-busfault(int signo, int code, struct sigcontext *sc)
+busfault(int signo)
{
- errx(1, "\nbus fault - investigate.");
+ errx(1, "%s\n - investigate.", sys_siglist[signo]);
}
static void
@@ -223,7 +223,7 @@
struct sigaction segv_act;
int verbose = 0;
- segv_act.sa_handler = (sig_t) busfault;
+ segv_act.sa_handler = busfault;
if (sigaction(SIGBUS, &segv_act, NULL) < 0)
err(1, "sigaction");
Home |
Main Index |
Thread Index |
Old Index