Browse code

mem: small def./decl. fix for a bunch of internal functions, use void argument

Henning Westerholt authored on 13/07/2011 22:16:38
Showing 4 changed files
... ...
@@ -65,7 +65,7 @@
65 65
  * \brief Initialize private memory pool
66 66
  * \return 0 if the memory allocation was successful, -1 otherwise
67 67
  */
68
-int init_pkg_mallocs()
68
+int init_pkg_mallocs(void)
69 69
 {
70 70
 #ifdef PKG_MALLOC
71 71
 	/*init mem*/
... ...
@@ -100,7 +100,7 @@ int init_pkg_mallocs()
100 100
 /**
101 101
  * \brief Destroy private memory pool
102 102
  */
103
-void destroy_pkg_mallocs()
103
+void destroy_pkg_mallocs(void)
104 104
 {
105 105
 #ifdef PKG_MALLOC
106 106
 	#ifndef DL_MALLOC
... ...
@@ -150,12 +150,12 @@
150 150
  * \brief Initialize private memory pool
151 151
  * \return 0 if the memory allocation was successful, -1 otherwise
152 152
  */
153
-int init_pkg_mallocs();
153
+int init_pkg_mallocs(void);
154 154
 
155 155
 /**
156 156
  * \brief Destroy private memory pool
157 157
  */
158
-void destroy_pkg_mallocs();
158
+void destroy_pkg_mallocs(void);
159 159
 
160 160
 /**
161 161
  * \brief Initialize shared memory pool
... ...
@@ -118,7 +118,7 @@ void* _shm_resize( void* p , unsigned int s)
118 118
 
119 119
 
120 120
 
121
-int shm_getmem()
121
+int shm_getmem(void)
122 122
 {
123 123
 
124 124
 #ifdef SHM_MMAP
... ...
@@ -233,7 +233,7 @@ int shm_mem_init(int force_alloc)
233 233
 }
234 234
 
235 235
 
236
-void shm_mem_destroy()
236
+void shm_mem_destroy(void)
237 237
 {
238 238
 #ifndef SHM_MMAP
239 239
 	struct shmid_ds shm_info;
... ...
@@ -174,11 +174,11 @@
174 174
 
175 175
 
176 176
 int shm_mem_init(int); /* calls shm_getmem & shm_mem_init_mallocs */
177
-int shm_getmem();   /* allocates the memory (mmap or sysv shmap) */
177
+int shm_getmem(void);   /* allocates the memory (mmap or sysv shmap) */
178 178
 int shm_mem_init_mallocs(void* mempool, unsigned long size); /* initialize
179 179
 																the mallocs
180 180
 																& the lock */
181
-void shm_mem_destroy();
181
+void shm_mem_destroy(void);
182 182
 
183 183
 
184 184