mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +00:00
Fix compiler warnings in hw/xfree86/os-support/solaris
sun_init.c: In function `xf86OpenConsole': sun_init.c:99: warning: cast does not match function type sun_init.c:74: warning: unused variable `FreeVTslot' sun_init.c: In function `xf86UseMsg': sun_init.c:417: warning: old-style parameter declaration sun_vid.c: In function `solUnMapVidMem': sun_vid.c:162: warning: long unsigned int format, pointer arg (arg 6) sun_vid.c: In function `xf86ReadBIOS': sun_vid.c:217: warning: long unsigned int format, pointer arg (arg 5) sun_vid.c:217: warning: long unsigned int format, int arg (arg 6) sun_agp.c: In function `xf86EnableAGP': sun_agp.c:321: warning: unsigned int format, CARD32 arg (arg 4) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
parent
d75777d54c
commit
d346bc3083
3 changed files with 6 additions and 8 deletions
|
|
@ -157,7 +157,7 @@ solUnMapVidMem(int ScreenNum, pointer Base, unsigned long Size)
|
|||
if (munmap(Base, Size) != 0) {
|
||||
xf86DrvMsgVerb(ScreenNum, X_WARNING, 0,
|
||||
"solUnMapVidMem: failed to unmap %s"
|
||||
" (0x%08lx,0x%lx) (%s)\n",
|
||||
" (0x%p,0x%lx) (%s)\n",
|
||||
apertureDevName, Base, Size,
|
||||
strerror(errno));
|
||||
}
|
||||
|
|
@ -212,8 +212,7 @@ xf86ReadBIOS(unsigned long Base, unsigned long Offset, unsigned char *Buf,
|
|||
(void)memcpy(Buf, (void *)(ptr + Offset), Len);
|
||||
if (munmap((caddr_t)ptr, mlen) != 0) {
|
||||
xf86MsgVerb(X_WARNING, 0,
|
||||
"solUnMapVidMem: failed to unmap %s"
|
||||
" (0x%08lx,0x%lx) (%s)\n",
|
||||
"xf86ReadBIOS: failed to unmap %s (0x%p,0x%x) (%s)\n",
|
||||
apertureDevName, ptr, mlen, strerror(errno));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue