summaryrefslogtreecommitdiffstats
path: root/lib/libc/amd64/sys/amd64_set_fsbase.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/amd64/sys/amd64_set_fsbase.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/amd64/sys/amd64_set_fsbase.c')
-rw-r--r--lib/libc/amd64/sys/amd64_set_fsbase.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/amd64/sys/amd64_set_fsbase.c b/lib/libc/amd64/sys/amd64_set_fsbase.c
index cbe4cac..e091485 100644
--- a/lib/libc/amd64/sys/amd64_set_fsbase.c
+++ b/lib/libc/amd64/sys/amd64_set_fsbase.c
@@ -29,11 +29,9 @@ __FBSDID("$FreeBSD$");
#include <machine/sysarch.h>
-extern int sysarch(int op, char *parms);
-
int
amd64_set_fsbase(void *addr)
{
- return (sysarch(AMD64_SET_FSBASE, (char *)&addr));
+ return (sysarch(AMD64_SET_FSBASE, &addr));
}
OpenPOWER on IntegriCloud