summaryrefslogtreecommitdiff
path: root/hw/xfree86/os-support/linux/lnx_video.c
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@daimi.au.dk>2004-08-02 21:15:30 +0000
committerSøren Sandmann Pedersen <sandmann@daimi.au.dk>2004-08-02 21:15:30 +0000
commit734cb34dc1697530ecd971b84e1061ed86b4c2a4 (patch)
tree85879c9e487d78220571badd4096034ad3b2ba1a /hw/xfree86/os-support/linux/lnx_video.c
parente6b9cc79c204420117a1f7b23d131ec24923d612 (diff)
Mon Aug 2 21:49:33 2004 Soeren Sandmann <sandmann@redhat.com>
Remove double cast.
Diffstat (limited to 'hw/xfree86/os-support/linux/lnx_video.c')
-rw-r--r--hw/xfree86/os-support/linux/lnx_video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c
index 9f9e2d02c..4cd8152df 100644
--- a/hw/xfree86/os-support/linux/lnx_video.c
+++ b/hw/xfree86/os-support/linux/lnx_video.c
@@ -450,11 +450,11 @@ mapVidMem(int ScreenNum, unsigned long Base, unsigned long Size, int flags)
/* This requires linux-0.99.pl10 or above */
base = mmap((caddr_t)0, Size + alignOff, prot, mapflags, fd,
- (off_t)(off_t)realBase + BUS_BASE);
+ (off_t)realBase + BUS_BASE);
close(fd);
if (base == MAP_FAILED) {
FatalError("xf86MapVidMem: Could not mmap framebuffer"
- " (0x%08x,0x%x) (%s)\n", Base, Size,
+ " (0x%08lx,0x%lx) (%s)\n", Base, Size,
strerror(errno));
}
#ifdef DEBUG