Browse code

modules_s: destroy() function set to static

- fix namespace conflicts on darwinos

Daniel-Constantin Mierla authored on 29/07/2009 09:08:39
Showing 5 changed files
... ...
@@ -60,7 +60,7 @@ static int child_init(int);
60 60
 static int w_ds_select_dst(struct sip_msg*, char*, char*);
61 61
 static int w_ds_select_new(struct sip_msg*, char*, char*);
62 62
 
63
-void destroy(void);
63
+static void destroy(void);
64 64
 
65 65
 static cmd_export_t cmds[]={
66 66
 	{"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)
157 157
 /**
158 158
  * destroy function
159 159
  */
160
-void destroy(void)
160
+static void destroy(void)
161 161
 {
162 162
 	DBG("DISPATCHER: destroy module ...\n");
163 163
 	ds_destroy_lists();
... ...
@@ -148,7 +148,7 @@ static int xj_exit_jconf(struct sip_msg*, char*, char*);
148 148
 static int xj_go_online(struct sip_msg*, char*, char*);
149 149
 static int xj_go_offline(struct sip_msg*, char*, char*);
150 150
 
151
-void destroy(void);
151
+static void destroy(void);
152 152
 
153 153
 /*
154 154
  * Exported functions
... ...
@@ -671,7 +671,7 @@ error:
671 671
 /**
672 672
  * destroy function of module
673 673
  */
674
-void destroy(void)
674
+static void destroy(void)
675 675
 {
676 676
 	int i;
677 677
 #ifdef XJ_EXTRA_DEBUG
... ...
@@ -125,7 +125,7 @@ static int child_init(int);
125 125
 static int m_store(struct sip_msg*, char*, char*);
126 126
 static int m_dump(struct sip_msg*, char*, char*);
127 127
 
128
-void destroy(void);
128
+static void destroy(void);
129 129
 
130 130
 void m_clean_silo(unsigned int ticks, void *);
131 131
 
... ...
@@ -319,7 +319,7 @@ static int child_init(int rank)
319 319
 /**
320 320
  * destroy function
321 321
  */
322
-void destroy(void)
322
+static void destroy(void)
323 323
 {
324 324
 	DBG("MSILO: destroy module ...\n");
325 325
 	msg_list_free(ml);
... ...
@@ -77,7 +77,7 @@ static int rl_limit_check(int, int, int);
77 77
 static int rl_limit_check(int, int);
78 78
 #endif
79 79
 static void timer(unsigned int, void *);
80
-void destroy(void);
80
+static void destroy(void);
81 81
 
82 82
 static rpc_export_t rpc_methods[];
83 83
 
... ...
@@ -165,7 +165,7 @@ static int child_init(int rank)
165 165
 	DBG("RATELIMIT:init_child #%d / pid <%d>\n", rank, getpid());
166 166
 	return 0;
167 167
 }
168
-void destroy(void)
168
+static void destroy(void)
169 169
 {
170 170
 	DBG("RATELIMIT: destroy module ...\n");
171 171
 }
... ...
@@ -60,7 +60,7 @@ static int xdbg(struct sip_msg*, char*, char*);
60 60
 static int xlog_fixup(void** param, int param_no);
61 61
 static int xdbg_fixup(void** param, int param_no);
62 62
 
63
-void destroy(void);
63
+static void destroy(void);
64 64
 
65 65
 static cmd_export_t cmds[]={
66 66
 	{"xlog",  xlog,  2, xlog_fixup, REQUEST_ROUTE | FAILURE_ROUTE |
... ...
@@ -166,7 +166,7 @@ static int xdbg(struct sip_msg* msg, char* frm, char* str2)
166 166
 /**
167 167
  * destroy function
168 168
  */
169
-void destroy(void)
169
+static void destroy(void)
170 170
 {
171 171
 	DBG("XLOG: destroy module ...\n");
172 172
 	if(log_buf)