summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1998-02-03 04:42:24 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1998-02-03 04:42:24 +0000
commitb9eff3dc2da109a570cf5e41a8c720473110e9cc (patch)
treed6dbd2ccc1beba92579db45c6efd30a02dfabcd8 /lib
parentb5899a909f89399992e6ff9a26ee0f21e9968a38 (diff)
lean up lint warnings
Diffstat (limited to 'lib')
-rw-r--r--lib/libarch/i386/i386_get_ioperm.c4
-rw-r--r--lib/libarch/i386/i386_get_ldt.c1
-rw-r--r--lib/libarch/i386/i386_iopl.c4
-rw-r--r--lib/libarch/i386/i386_set_ioperm.c4
-rw-r--r--lib/libarch/i386/i386_set_ldt.c1
-rw-r--r--lib/libarch/i386/i386_vm86.c3
6 files changed, 13 insertions, 4 deletions
diff --git a/lib/libarch/i386/i386_get_ioperm.c b/lib/libarch/i386/i386_get_ioperm.c
index 065cabf38ba..8a30f57361d 100644
--- a/lib/libarch/i386/i386_get_ioperm.c
+++ b/lib/libarch/i386/i386_get_ioperm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i386_get_ioperm.c,v 1.3 1997/07/23 20:41:10 kstailey Exp $ */
+/* $OpenBSD: i386_get_ioperm.c,v 1.4 1998/02/03 04:42:20 tholo Exp $ */
/* $NetBSD: i386_get_ioperm.c,v 1.2 1996/02/27 22:57:22 jtc Exp $ */
/*-
@@ -40,6 +40,7 @@
#include <sys/cdefs.h>
#include <sys/types.h>
+#include <machine/segments.h>
#include <machine/sysarch.h>
int
@@ -50,5 +51,6 @@ i386_get_ioperm(iomap)
p.iomap = iomap;
+ /* LINTED pointer casts may be troublesome */
return sysarch(I386_GET_IOPERM, (char *)&p);
}
diff --git a/lib/libarch/i386/i386_get_ldt.c b/lib/libarch/i386/i386_get_ldt.c
index a6fccc1eb14..56fb1560d01 100644
--- a/lib/libarch/i386/i386_get_ldt.c
+++ b/lib/libarch/i386/i386_get_ldt.c
@@ -45,5 +45,6 @@ i386_get_ldt(start, desc, num)
p.desc = desc;
p.num = num;
+ /* LINTED pointer casts may be troublesome */
return sysarch(I386_GET_LDT, (char *)&p);
}
diff --git a/lib/libarch/i386/i386_iopl.c b/lib/libarch/i386/i386_iopl.c
index c665ff41827..a9290a6c21d 100644
--- a/lib/libarch/i386/i386_iopl.c
+++ b/lib/libarch/i386/i386_iopl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i386_iopl.c,v 1.3 1997/07/23 20:41:11 kstailey Exp $ */
+/* $OpenBSD: i386_iopl.c,v 1.4 1998/02/03 04:42:21 tholo Exp $ */
/* $NetBSD: i386_iopl.c,v 1.2 1996/02/27 22:57:29 jtc Exp $ */
/*-
@@ -40,6 +40,7 @@
#include <sys/cdefs.h>
#include <sys/types.h>
+#include <machine/segments.h>
#include <machine/sysarch.h>
int
@@ -50,5 +51,6 @@ i386_iopl(iopl)
p.iopl = iopl;
+ /* LINTED pointer casts may be troublesome */
return sysarch(I386_IOPL, (char *)&p);
}
diff --git a/lib/libarch/i386/i386_set_ioperm.c b/lib/libarch/i386/i386_set_ioperm.c
index b5da9759814..0ff02bfeadb 100644
--- a/lib/libarch/i386/i386_set_ioperm.c
+++ b/lib/libarch/i386/i386_set_ioperm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i386_set_ioperm.c,v 1.3 1997/07/23 20:41:11 kstailey Exp $ */
+/* $OpenBSD: i386_set_ioperm.c,v 1.4 1998/02/03 04:42:22 tholo Exp $ */
/* $NetBSD: i386_set_ioperm.c,v 1.2 1996/02/27 22:57:31 jtc Exp $ */
/*-
@@ -40,6 +40,7 @@
#include <sys/cdefs.h>
#include <sys/types.h>
+#include <machine/segments.h>
#include <machine/sysarch.h>
int
@@ -50,5 +51,6 @@ i386_set_ioperm(iomap)
p.iomap = iomap;
+ /* LINTED pointer casts may be troublesome */
return sysarch(I386_SET_IOPERM, (char *)&p);
}
diff --git a/lib/libarch/i386/i386_set_ldt.c b/lib/libarch/i386/i386_set_ldt.c
index 25bc1f328d3..11e5f4b0860 100644
--- a/lib/libarch/i386/i386_set_ldt.c
+++ b/lib/libarch/i386/i386_set_ldt.c
@@ -45,5 +45,6 @@ i386_set_ldt(start, desc, num)
p.desc = desc;
p.num = num;
+ /* LINTED pointer casts may be troublesome */
return sysarch(I386_SET_LDT, (char *)&p);
}
diff --git a/lib/libarch/i386/i386_vm86.c b/lib/libarch/i386/i386_vm86.c
index 50a8e601c39..55ddde3b76d 100644
--- a/lib/libarch/i386/i386_vm86.c
+++ b/lib/libarch/i386/i386_vm86.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i386_vm86.c,v 1.2 1997/07/23 20:41:12 kstailey Exp $ */
+/* $OpenBSD: i386_vm86.c,v 1.3 1998/02/03 04:42:23 tholo Exp $ */
/* $NetBSD: i386_vm86.c,v 1.1 1996/02/21 00:21:56 jtk Exp $ */
/*-
@@ -49,6 +49,7 @@ i386_vm86(vmcp)
register struct vm86_struct *vmcp;
{
+ /* LINTED pointer cast may be troublesome */
return sysarch(I386_VM86, (char *)vmcp);
}