[sr-dev] git:master: mem: small def./decl. fix for a bunch of internal functions, use void argument

Henning Westerholt henning.westerholt at 1und1.de
Thu Jul 14 00:20:56 CEST 2011


Module: sip-router
Branch: master
Commit: 9f8a2ff62f523225ce2bdfb3cdd710b3f32ce911
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9f8a2ff62f523225ce2bdfb3cdd710b3f32ce911

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Thu Jul 14 00:16:38 2011 +0200

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

---

 mem/mem.c     |    4 ++--
 mem/mem.h     |    4 ++--
 mem/shm_mem.c |    4 ++--
 mem/shm_mem.h |    4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/mem/mem.c b/mem/mem.c
index 1c70471..c95cc2b 100644
--- 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
diff --git a/mem/mem.h b/mem/mem.h
index 239ec63..15bce11 100644
--- a/mem/mem.h
+++ b/mem/mem.h
@@ -150,12 +150,12 @@
  * \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
diff --git a/mem/shm_mem.c b/mem/shm_mem.c
index 454575f..b4f1cfc 100644
--- a/mem/shm_mem.c
+++ b/mem/shm_mem.c
@@ -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;
diff --git a/mem/shm_mem.h b/mem/shm_mem.h
index 8c60b40..917990a 100644
--- a/mem/shm_mem.h
+++ b/mem/shm_mem.h
@@ -174,11 +174,11 @@
 
 
 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);
 
 
 




More information about the sr-dev mailing list