[MPlayer-cvslog] r33409 - trunk/vidix/dha.c

reimar subversion at mplayerhq.hu
Sat May 7 21:41:42 CEST 2011


Author: reimar
Date: Sat May  7 21:41:42 2011
New Revision: 33409

Log:
On error munmap returns -1, not MAP_FAILED.

Fixes "ast from pointer to integer of different size" warning.

Modified:
   trunk/vidix/dha.c

Modified: trunk/vidix/dha.c
==============================================================================
--- trunk/vidix/dha.c	Sat May  7 21:39:51 2011	(r33408)
+++ trunk/vidix/dha.c	Sat May  7 21:41:42 2011	(r33409)
@@ -171,7 +171,7 @@ void unmap_phys_mem(void *ptr, unsigned 
 {
   int res = munmap(ptr,size);
 
-  if (res == (int)MAP_FAILED)
+  if (res == -1)
   {
       perror("libdha: unmapping memory failed");
       return;


More information about the MPlayer-cvslog mailing list