changeset 33322:99054ecaf3d9

On error munmap returns -1, not MAP_FAILED. Fixes "ast from pointer to integer of different size" warning.
author reimar
date Sat, 07 May 2011 19:41:42 +0000
parents 96bd14d567b7
children d4af28753ec8
files vidix/dha.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vidix/dha.c	Sat May 07 19:39:51 2011 +0000
+++ b/vidix/dha.c	Sat May 07 19:41:42 2011 +0000
@@ -171,7 +171,7 @@
 {
   int res = munmap(ptr,size);
 
-  if (res == (int)MAP_FAILED)
+  if (res == -1)
   {
       perror("libdha: unmapping memory failed");
       return;