summaryrefslogtreecommitdiffstats
path: root/libdha/sysdep/pci_openbsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdha/sysdep/pci_openbsd.c')
-rw-r--r--libdha/sysdep/pci_openbsd.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/libdha/sysdep/pci_openbsd.c b/libdha/sysdep/pci_openbsd.c
index ef835b405f..387335c236 100644
--- a/libdha/sysdep/pci_openbsd.c
+++ b/libdha/sysdep/pci_openbsd.c
@@ -4,15 +4,19 @@
Modified for readability by Nick Kurshev
*/
-static __inline__ void enable_os_io(void)
+#include <errno.h>
+
+static __inline__ int enable_os_io(void)
{
if (i386_iopl(1) < 0) {
perror("i386_iopl");
- exit(1);
+ return(errno);
}
+ return(0);
}
-static __inline__ void disable_os_io(void)
+static __inline__ int disable_os_io(void)
{
/* Nothing to do */
+ return(0);
}