mem: small def./decl. fix for a bunch of internal functions, use void argument
authorHenning Westerholt <henning.westerholt@1und1.de>
Wed, 13 Jul 2011 22:16:38 +0000 (00:16 +0200)
committerHenning Westerholt <henning.westerholt@1und1.de>
Wed, 13 Jul 2011 22:16:38 +0000 (00:16 +0200)
mem/mem.c
mem/mem.h
mem/shm_mem.c
mem/shm_mem.h

index 1c70471..c95cc2b 100644 (file)
--- a/mem/mem.c
+++ b/mem/mem.c
@@ -65,7 +65,7 @@
  * \brief Initialize private memory pool
  * \return 0 if the memory allocation was successful, -1 otherwise
  */
-int init_pkg_mallocs()
+int init_pkg_mallocs(void)
 {
 #ifdef PKG_MALLOC
        /*init mem*/
@@ -100,7 +100,7 @@ int init_pkg_mallocs()
 /**
  * \brief Destroy private memory pool
  */
-void destroy_pkg_mallocs()
+void destroy_pkg_mallocs(void)
 {
 #ifdef PKG_MALLOC
        #ifndef DL_MALLOC
index 239ec63..15bce11 100644 (file)
--- a/mem/mem.h
+++ b/mem/mem.h
  * \brief Initialize private memory pool
  * \return 0 if the memory allocation was successful, -1 otherwise
  */
-int init_pkg_mallocs();
+int init_pkg_mallocs(void);
 
 /**
  * \brief Destroy private memory pool
  */
-void destroy_pkg_mallocs();
+void destroy_pkg_mallocs(void);
 
 /**
  * \brief Initialize shared memory pool
index 454575f..b4f1cfc 100644 (file)
@@ -118,7 +118,7 @@ void* _shm_resize( void* p , unsigned int s)
 
 
 
-int shm_getmem()
+int shm_getmem(void)
 {
 
 #ifdef SHM_MMAP
@@ -233,7 +233,7 @@ int shm_mem_init(int force_alloc)
 }
 
 
-void shm_mem_destroy()
+void shm_mem_destroy(void)
 {
 #ifndef SHM_MMAP
        struct shmid_ds shm_info;
index 8c60b40..917990a 100644 (file)
 
 
 int shm_mem_init(int); /* calls shm_getmem & shm_mem_init_mallocs */
-int shm_getmem();   /* allocates the memory (mmap or sysv shmap) */
+int shm_getmem(void);   /* allocates the memory (mmap or sysv shmap) */
 int shm_mem_init_mallocs(void* mempool, unsigned long size); /* initialize
                                                                                                                                the mallocs
                                                                                                                                & the lock */
-void shm_mem_destroy();
+void shm_mem_destroy(void);