diff options
author | nectar <nectar@FreeBSD.org> | 2004-01-09 16:52:09 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2004-01-09 16:52:09 +0000 |
commit | 11f80dcf0d1a027a367f10e000648cb1f64cbdad (patch) | |
tree | 9ca5ad04689553c5e971e12633d53b09108d5ed4 /lib/libc/alpha | |
parent | cce48275690715c8d64e7f7c6c6ab3d7e2877a75 (diff) | |
download | FreeBSD-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/alpha')
-rw-r--r-- | lib/libc/alpha/gen/fpgetmask.c | 4 | ||||
-rw-r--r-- | lib/libc/alpha/gen/fpsetmask.c | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/alpha/gen/fpgetmask.c b/lib/libc/alpha/gen/fpgetmask.c index 43053aa..036a150 100644 --- a/lib/libc/alpha/gen/fpgetmask.c +++ b/lib/libc/alpha/gen/fpgetmask.c @@ -38,8 +38,6 @@ __FBSDID("$FreeBSD$"); #include <ieeefp.h> #include <machine/sysarch.h> -extern int sysarch(int op, char *parms); - struct params { u_int64_t mask; }; @@ -49,6 +47,6 @@ fpgetmask() { struct params p; - sysarch(ALPHA_GET_FPMASK, (char *) &p); + sysarch(ALPHA_GET_FPMASK, &p); return((fp_except_t) p.mask); } diff --git a/lib/libc/alpha/gen/fpsetmask.c b/lib/libc/alpha/gen/fpsetmask.c index 28675b5..65da3c5 100644 --- a/lib/libc/alpha/gen/fpsetmask.c +++ b/lib/libc/alpha/gen/fpsetmask.c @@ -49,6 +49,6 @@ fpsetmask(mask) struct params p; p.mask = (u_int64_t) mask; - sysarch(ALPHA_SET_FPMASK, (char *) &p); + sysarch(ALPHA_SET_FPMASK, &p); return ((fp_except_t) p.mask); } |