Browse code

- fixed lock_dealloc & lock_set_dealloc warning

Andrei Pelinescu-Onciul authored on 17/03/2003 16:49:31
Showing 1 changed files
... ...
@@ -29,7 +29,8 @@
29 29
  *   ser locking library
30 30
  *   WARNING: don't include this directly include instead locking.h!
31 31
  *
32
- *  2002-03-06  created by andrei (contains parts of the original locking.h)
32
+ *  2003-03-06  created by andrei (contains parts of the original locking.h)
33
+ *  2003-03-17  fixed cast warning in shm_free (forced to void*) (andrei)
33 34
  *
34 35
 Implements: (see also locking.h)
35 36
 
... ...
@@ -75,7 +76,7 @@ inline static lock_set_t* lock_set_alloc(int n)
75 75
 	return ls;
76 76
 }
77 77
 
78
-#define lock_set_dealloc(lock_set) shm_free(lock_set)
78
+#define lock_set_dealloc(lock_set) shm_free((void*)lock_set)
79 79
 
80 80
 #elif defined USE_SYSV_SEM
81 81
 
... ...
@@ -96,7 +97,7 @@ inline static lock_set_t* lock_set_alloc(int n)
96 96
 }
97 97
 
98 98
 
99
-#define lock_set_dealloc(lock_set) shm_free(lock_set)
99
+#define lock_set_dealloc(lock_set) shm_free((void*)lock_set)
100 100
 
101 101
 
102 102
 #else