summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386/sys/i386_get_ioperm.c
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2004-01-09 16:52:09 +0000
committernectar <nectar@FreeBSD.org>2004-01-09 16:52:09 +0000
commit11f80dcf0d1a027a367f10e000648cb1f64cbdad (patch)
tree9ca5ad04689553c5e971e12633d53b09108d5ed4 /lib/libc/i386/sys/i386_get_ioperm.c
parentcce48275690715c8d64e7f7c6c6ab3d7e2877a75 (diff)
downloadFreeBSD-src-11f80dcf0d1a027a367f10e000648cb1f64cbdad.zip
FreeBSD-src-11f80dcf0d1a027a367f10e000648cb1f64cbdad.tar.gz
Provide sysarch(2) prototypes in the MD sysarch.h headers. While I'm
at it, use the ANSI C generic pointer type for the second argument, thus matching the documentation. Remove the now extraneous (and now conflicting) function declarations in various libc sources. Remove now unnecessary casts. Reviewed by: bde
Diffstat (limited to 'lib/libc/i386/sys/i386_get_ioperm.c')
-rw-r--r--lib/libc/i386/sys/i386_get_ioperm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/i386/sys/i386_get_ioperm.c b/lib/libc/i386/sys/i386_get_ioperm.c
index 30c050c..7bc27f8 100644
--- a/lib/libc/i386/sys/i386_get_ioperm.c
+++ b/lib/libc/i386/sys/i386_get_ioperm.c
@@ -29,8 +29,6 @@ __FBSDID("$FreeBSD$");
#include <machine/sysarch.h>
-extern int sysarch(int op, char *parms);
-
int
i386_get_ioperm(unsigned int start, unsigned int *length, int *enable)
{
@@ -41,7 +39,7 @@ i386_get_ioperm(unsigned int start, unsigned int *length, int *enable)
p.length = *length;
p.enable = *enable;
- error = sysarch(I386_GET_IOPERM, (char *)&p);
+ error = sysarch(I386_GET_IOPERM, &p);
*length = p.length;
*enable = p.enable;
OpenPOWER on IntegriCloud