From f09523cb930f5659d296ae9cbba40d26e114563c Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Sat, 15 Mar 2008 21:48:12 -0300 Subject: [PATCH] Compile warning fixes. Cast pciaddr_t to unsigned long "printf" argument. Include for open, read, close, lseek and usleep prototypes. --- src/rendition.c | 4 ++-- src/vloaduc.c | 2 ++ src/vmodes.c | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/rendition.c b/src/rendition.c index 513e716..f26ce00 100644 --- a/src/rendition.c +++ b/src/rendition.c @@ -770,8 +770,8 @@ renditionPreInit(ScrnInfoPtr pScreenInfo, int flags) renditionChipsets[pRendition->board.chip==V1000_DEVICE ? 0:1] .name, #ifdef XSERVER_LIBPCIACCESS - pRendition->PciInfo->regions[1].base_addr, - pRendition->PciInfo->regions[0].base_addr + (unsigned long)pRendition->PciInfo->regions[1].base_addr, + (unsigned long)pRendition->PciInfo->regions[0].base_addr #else pRendition->PciInfo->ioBase[1], pRendition->PciInfo->memBase[0] diff --git a/src/vloaduc.c b/src/vloaduc.c index 9f3e17e..dd09332 100644 --- a/src/vloaduc.c +++ b/src/vloaduc.c @@ -24,6 +24,8 @@ #include #endif +#include + /* * defines */ diff --git a/src/vmodes.c b/src/vmodes.c index 834bfc1..79c7c7d 100644 --- a/src/vmodes.c +++ b/src/vmodes.c @@ -21,6 +21,7 @@ #include "v1kregs.h" #include "v2kregs.h" +#include #undef DEBUG -- 1.5.3.2