changeset 2446:6fb598bd7ede

Suppressing warnings
author nick
date Wed, 24 Oct 2001 09:18:20 +0000
parents c570836dd567
children 3248aabc6d1d
files libvo/vo_vesa.c linux/vbelib.h
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_vesa.c	Wed Oct 24 07:51:44 2001 +0000
+++ b/libvo/vo_vesa.c	Wed Oct 24 09:18:20 2001 +0000
@@ -16,6 +16,7 @@
   - refresh rate support (need additional info from mplayer)
 */
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <stddef.h>
 #include <limits.h>
@@ -503,7 +504,7 @@
 		  printf("vo_vesa: Mode (%03u): mode=%04X %ux%u@%u attr=%04X\n"
 			 "vo_vesa:             #planes=%u model=%u(%s) #pages=%u\n"
 			 "vo_vesa:             winA=%X(attr=%u) winB=%X(attr=%u) winSize=%u winGran=%u\n"
-			 "vo_vesa:             direct_color=%u DGA_phys_addr=%08X\n"
+			 "vo_vesa:             direct_color=%u DGA_phys_addr=%08lX\n"
 			 ,i,mode_ptr[i],vmib.XResolution,vmib.YResolution,vmib.BitsPerPixel,vmib.ModeAttributes
 			 ,vmib.NumberOfPlanes,vmib.MemoryModel,model2str(vmib.MemoryModel),vmib.NumberOfImagePages
 			 ,vmib.WinASegment,vmib.WinAAttributes,vmib.WinBSegment,vmib.WinBAttributes,vmib.WinSize,vmib.WinGranularity
--- a/linux/vbelib.h	Wed Oct 24 07:51:44 2001 +0000
+++ b/linux/vbelib.h	Wed Oct 24 09:18:20 2001 +0000
@@ -194,7 +194,7 @@
 #define VBE_VESA_ERRCODE_MASK 0xff00
 
 extern int vbeInit( void );
-extern int vbeDetroy( void );
+extern int vbeDestroy( void );
 
 extern int vbeGetControllerInfo(struct VbeInfoBlock *);
 extern int vbeGetModeInfo(unsigned mode,struct VesaModeInfoBlock *);