mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
committed by
Daniel Stone
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
|
||||
|
||||
Reference in New Issue
Block a user