diff options
-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; |