Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/dev Fix in-code declaration of the sigacti...
details: https://anonhg.NetBSD.org/src/rev/acab4abfc56d
branches: trunk
changeset: 771663:acab4abfc56d
user: reinoud <reinoud%NetBSD.org@localhost>
date: Sun Nov 27 20:57:28 2011 +0000
description:
Fix in-code declaration of the sigaction structure.
diffstat:
sys/arch/usermode/dev/ld_thunkbus.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 6e000ce8a3bf -r acab4abfc56d sys/arch/usermode/dev/ld_thunkbus.c
--- a/sys/arch/usermode/dev/ld_thunkbus.c Sun Nov 27 20:08:23 2011 +0000
+++ b/sys/arch/usermode/dev/ld_thunkbus.c Sun Nov 27 20:57:28 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ld_thunkbus.c,v 1.17 2011/11/27 20:08:23 reinoud Exp $ */
+/* $NetBSD: ld_thunkbus.c,v 1.18 2011/11/27 20:57:28 reinoud Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_thunkbus.c,v 1.17 2011/11/27 20:08:23 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_thunkbus.c,v 1.18 2011/11/27 20:57:28 reinoud Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -95,6 +95,9 @@
struct ld_thunkbus_softc *sc = device_private(self);
struct ld_softc *ld = &sc->sc_ld;
struct thunkbus_attach_args *taa = opaque;
+#ifdef LD_USE_AIO
+ struct sigaction sa;
+#endif
const char *path = taa->u.diskimage.path;
ssize_t size, blksize;
@@ -126,8 +129,6 @@
ld_thunkbus_complete, sc);
#ifdef LD_USE_AIO
- struct sigaction sa;
-
sa.sa_flags = SA_RESTART | SA_SIGINFO;
sa.sa_sigaction = ld_thunkbus_sig;
thunk_sigemptyset(&sa.sa_mask);
Home |
Main Index |
Thread Index |
Old Index