summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortom <tom@openbsd.org>2004-02-10 00:41:44 +0000
committertom <tom@openbsd.org>2004-02-10 00:41:44 +0000
commit97c08b248b07b151e1a39c39e0a22c25ff097d6c (patch)
tree63344d8dd87c743428e019cffb3aada740921191
parentEnable interrupts before halt when we error out. Allows use of (diff)
downloadwireguard-openbsd-97c08b248b07b151e1a39c39e0a22c25ff097d6c.tar.xz
wireguard-openbsd-97c08b248b07b151e1a39c39e0a22c25ff097d6c.zip
Make debug_init void debug_init(void), like nearly all of the other
functions that machdep() calls. ok deraadt@
-rw-r--r--sys/arch/i386/stand/libsa/debug.c5
-rw-r--r--sys/arch/i386/stand/libsa/debug.h4
2 files changed, 4 insertions, 5 deletions
diff --git a/sys/arch/i386/stand/libsa/debug.c b/sys/arch/i386/stand/libsa/debug.c
index 42577a44a8c..ea6e7868290 100644
--- a/sys/arch/i386/stand/libsa/debug.c
+++ b/sys/arch/i386/stand/libsa/debug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: debug.c,v 1.11 2003/08/11 06:23:09 deraadt Exp $ */
+/* $OpenBSD: debug.c,v 1.12 2004/02/10 00:41:44 tom Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -47,10 +47,9 @@ void d_putc(dev_t, int);
#define CKPT(c) /* c */
#endif
-int
+void
debug_init(void)
{
- return 0;
}
diff --git a/sys/arch/i386/stand/libsa/debug.h b/sys/arch/i386/stand/libsa/debug.h
index 3139c5deb7b..08807db56c3 100644
--- a/sys/arch/i386/stand/libsa/debug.h
+++ b/sys/arch/i386/stand/libsa/debug.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: debug.h,v 1.6 2003/06/03 20:22:11 mickey Exp $ */
+/* $OpenBSD: debug.h,v 1.7 2004/02/10 00:41:44 tom Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -33,6 +33,6 @@
extern char *const reg_names[];
extern const size_t nregs;
-int debug_init(void);
+void debug_init(void);
void dump_regs(u_int, u_int);
void dump_mem(char *, void *, size_t);