Browse Source

- fixed lock_dealloc & lock_set_dealloc warning

Andrei Pelinescu-Onciul 22 years ago
parent
commit
8b7e37cf20
1 changed files with 4 additions and 3 deletions
  1. 4 3
      lock_alloc.h

+ 4 - 3
lock_alloc.h

@@ -29,7 +29,8 @@
  *   ser locking library
  *   WARNING: don't include this directly include instead locking.h!
  *
- *  2002-03-06  created by andrei (contains parts of the original locking.h)
+ *  2003-03-06  created by andrei (contains parts of the original locking.h)
+ *  2003-03-17  fixed cast warning in shm_free (forced to void*) (andrei)
  *
 Implements: (see also locking.h)
 
@@ -75,7 +76,7 @@ inline static lock_set_t* lock_set_alloc(int n)
 	return ls;
 }
 
-#define lock_set_dealloc(lock_set) shm_free(lock_set)
+#define lock_set_dealloc(lock_set) shm_free((void*)lock_set)
 
 #elif defined USE_SYSV_SEM
 
@@ -96,7 +97,7 @@ inline static lock_set_t* lock_set_alloc(int n)
 }
 
 
-#define lock_set_dealloc(lock_set) shm_free(lock_set)
+#define lock_set_dealloc(lock_set) shm_free((void*)lock_set)
 
 
 #else