Browse Source

modules_s: destroy() function set to static

- fix namespace conflicts on darwinos
Daniel-Constantin Mierla 16 năm trước cách đây
mục cha
commit
0899e739f5

+ 2 - 2
modules_s/dispatcher/dispatcher.c

@@ -60,7 +60,7 @@ static int child_init(int);
 static int w_ds_select_dst(struct sip_msg*, char*, char*);
 static int w_ds_select_new(struct sip_msg*, char*, char*);
 
-void destroy(void);
+static void destroy(void);
 
 static cmd_export_t cmds[]={
 	{"ds_select_dst", w_ds_select_dst, 2, fixup_var_int_12, REQUEST_ROUTE|FAILURE_ROUTE},
@@ -157,7 +157,7 @@ static int w_ds_select_new(struct sip_msg* msg, char* set, char* alg)
 /**
  * destroy function
  */
-void destroy(void)
+static void destroy(void)
 {
 	DBG("DISPATCHER: destroy module ...\n");
 	ds_destroy_lists();

+ 2 - 2
modules_s/jabber/jabber.c

@@ -148,7 +148,7 @@ static int xj_exit_jconf(struct sip_msg*, char*, char*);
 static int xj_go_online(struct sip_msg*, char*, char*);
 static int xj_go_offline(struct sip_msg*, char*, char*);
 
-void destroy(void);
+static void destroy(void);
 
 /*
  * Exported functions
@@ -671,7 +671,7 @@ error:
 /**
  * destroy function of module
  */
-void destroy(void)
+static void destroy(void)
 {
 	int i;
 #ifdef XJ_EXTRA_DEBUG

+ 2 - 2
modules_s/msilo/msilo.c

@@ -125,7 +125,7 @@ static int child_init(int);
 static int m_store(struct sip_msg*, char*, char*);
 static int m_dump(struct sip_msg*, char*, char*);
 
-void destroy(void);
+static void destroy(void);
 
 void m_clean_silo(unsigned int ticks, void *);
 
@@ -319,7 +319,7 @@ static int child_init(int rank)
 /**
  * destroy function
  */
-void destroy(void)
+static void destroy(void)
 {
 	DBG("MSILO: destroy module ...\n");
 	msg_list_free(ml);

+ 2 - 2
modules_s/ratelimit/ratelimit.c

@@ -77,7 +77,7 @@ static int rl_limit_check(int, int, int);
 static int rl_limit_check(int, int);
 #endif
 static void timer(unsigned int, void *);
-void destroy(void);
+static void destroy(void);
 
 static rpc_export_t rpc_methods[];
 
@@ -165,7 +165,7 @@ static int child_init(int rank)
 	DBG("RATELIMIT:init_child #%d / pid <%d>\n", rank, getpid());
 	return 0;
 }
-void destroy(void)
+static void destroy(void)
 {
 	DBG("RATELIMIT: destroy module ...\n");
 }

+ 2 - 2
modules_s/xlog/xlog.c

@@ -60,7 +60,7 @@ static int xdbg(struct sip_msg*, char*, char*);
 static int xlog_fixup(void** param, int param_no);
 static int xdbg_fixup(void** param, int param_no);
 
-void destroy(void);
+static void destroy(void);
 
 static cmd_export_t cmds[]={
 	{"xlog",  xlog,  2, xlog_fixup, REQUEST_ROUTE | FAILURE_ROUTE |
@@ -166,7 +166,7 @@ static int xdbg(struct sip_msg* msg, char* frm, char* str2)
 /**
  * destroy function
  */
-void destroy(void)
+static void destroy(void)
 {
 	DBG("XLOG: destroy module ...\n");
 	if(log_buf)