aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/amd64/sys/amd64_get_gsbase.c
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2004-01-09 16:52:09 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2004-01-09 16:52:09 +0000
commite4dc8baa84ba268ae07ac65481c5085dc2a79e7f (patch)
tree9ca5ad04689553c5e971e12633d53b09108d5ed4 /lib/libc/amd64/sys/amd64_get_gsbase.c
parentcfa35456ca199a2264e6a18e1f99b91f7fb4f11b (diff)
downloadsrc-e4dc8baa84ba268ae07ac65481c5085dc2a79e7f.tar.gz
src-e4dc8baa84ba268ae07ac65481c5085dc2a79e7f.zip
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
Notes
Notes: svn path=/head/; revision=124296
Diffstat (limited to 'lib/libc/amd64/sys/amd64_get_gsbase.c')
-rw-r--r--lib/libc/amd64/sys/amd64_get_gsbase.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/amd64/sys/amd64_get_gsbase.c b/lib/libc/amd64/sys/amd64_get_gsbase.c
index abb02dfff547..ddbf977f5dd1 100644
--- a/lib/libc/amd64/sys/amd64_get_gsbase.c
+++ b/lib/libc/amd64/sys/amd64_get_gsbase.c
@@ -29,11 +29,9 @@ __FBSDID("$FreeBSD$");
#include <machine/sysarch.h>
-extern int sysarch(int op, char *parms);
-
int
amd64_get_gsbase(void **addr)
{
- return (sysarch(AMD64_GET_GSBASE, (char *)addr));
+ return (sysarch(AMD64_GET_GSBASE, addr));
}