summaryrefslogtreecommitdiff
path: root/xserver/hw/xfree86/os-support/linux/lnx_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'xserver/hw/xfree86/os-support/linux/lnx_video.c')
-rw-r--r--xserver/hw/xfree86/os-support/linux/lnx_video.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xserver/hw/xfree86/os-support/linux/lnx_video.c b/xserver/hw/xfree86/os-support/linux/lnx_video.c
index 3d455112c..468c62193 100644
--- a/xserver/hw/xfree86/os-support/linux/lnx_video.c
+++ b/xserver/hw/xfree86/os-support/linux/lnx_video.c
@@ -469,11 +469,11 @@ mapVidMem(int ScreenNum, unsigned long Base, unsigned long Size, int flags)
static void
unmapVidMem(int ScreenNum, pointer Base, unsigned long Size)
{
- memType alignOff = (memType)Base
- - ((memType)Base & ~(getpagesize() - 1));
+ uintptr_t alignOff = (uintptr_t)Base
+ - ((uintptr_t)Base & ~(getpagesize() - 1));
- DebugF("alignment offset: %lx\n",alignOff);
- munmap((caddr_t)((memType)Base - alignOff), (Size + alignOff));
+ DebugF("alignment offset: %lx\n", (unsigned long)alignOff);
+ munmap((void *)((uintptr_t)Base - alignOff), (Size + alignOff));
}