Fix strict-alias warnings by removing excessive (and wrong) casts.

This commit is contained in:
Peter Wemm 2005-04-07 04:33:15 +00:00
parent 91c09a383a
commit 8d6f45f534
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;