linux: warning fix
lnx_agp.c: In function ‘xf86DeallocateGARTMemory’: lnx_agp.c:267: warning: cast to pointer from integer of different size Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
63ccaec2c3
commit
36ebdd3616
|
@ -264,7 +264,7 @@ xf86DeallocateGARTMemory(int screenNum, int key)
|
|||
}
|
||||
|
||||
#ifdef __linux__
|
||||
if (ioctl(gartFd, AGPIOC_DEALLOCATE, (int *)key) != 0) {
|
||||
if (ioctl(gartFd, AGPIOC_DEALLOCATE, (int *)(uintptr_t)key) != 0) {
|
||||
#else
|
||||
if (ioctl(gartFd, AGPIOC_DEALLOCATE, &key) != 0) {
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue
Block a user