diff options
author | peter <peter@FreeBSD.org> | 2005-04-07 04:33:15 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2005-04-07 04:33:15 +0000 |
commit | cb1b05e7a8e4b700be8b3114e841fd0ee45c277f (patch) | |
tree | 061702917c04e50ccfb0fd98af8f9955cd814083 | |
parent | cbb9f3f415d27dacd2fe96602be07cf6ffe152c3 (diff) | |
download | FreeBSD-src-cb1b05e7a8e4b700be8b3114e841fd0ee45c277f.zip FreeBSD-src-cb1b05e7a8e4b700be8b3114e841fd0ee45c277f.tar.gz |
Fix strict-alias warnings by removing excessive (and wrong) casts.
-rw-r--r-- | lib/libc/i386/sys/_amd64_get_fsbase.c | 2 | ||||
-rw-r--r-- | lib/libc/i386/sys/_amd64_get_gsbase.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/i386/sys/_amd64_get_fsbase.c b/lib/libc/i386/sys/_amd64_get_fsbase.c index f9a9d94..43a8b31 100644 --- a/lib/libc/i386/sys/_amd64_get_fsbase.c +++ b/lib/libc/i386/sys/_amd64_get_fsbase.c @@ -37,7 +37,7 @@ _amd64_get_fsbase(void **addr) int ret; addr64 = 0; - ret = sysarch(_AMD64_GET_FSBASE, (void **)(&addr64)); + ret = sysarch(_AMD64_GET_FSBASE, &addr64); if (ret != -1) *addr = (void *)(uintptr_t)addr64; return ret; diff --git a/lib/libc/i386/sys/_amd64_get_gsbase.c b/lib/libc/i386/sys/_amd64_get_gsbase.c index 98b42be..161e140 100644 --- a/lib/libc/i386/sys/_amd64_get_gsbase.c +++ b/lib/libc/i386/sys/_amd64_get_gsbase.c @@ -37,7 +37,7 @@ _amd64_get_gsbase(void **addr) int ret; addr64 = 0; - ret = sysarch(_AMD64_GET_GSBASE, (void **)(&addr64)); + ret = sysarch(_AMD64_GET_GSBASE, &addr64); if (ret != -1) *addr = (void *)(uintptr_t)addr64; return ret; |