Browse code

modules_k: destroy() functions set to static

- fix namespacing conflicts in darwinos

Daniel-Constantin Mierla authored on 29/07/2009 08:41:25
Showing 12 changed files
... ...
@@ -50,7 +50,7 @@ int  ht_timer_interval = 20;
50 50
 static int ht_print(struct sip_msg*, char*, char*);
51 51
 static int mod_init(void);
52 52
 static int child_init(int rank);
53
-void destroy(void);
53
+static void destroy(void);
54 54
 
55 55
 static int fixup_ht_rm(void** param, int param_no);
56 56
 static int ht_rm_name_re(struct sip_msg* msg, char* key, char* foo);
... ...
@@ -200,7 +200,7 @@ static int child_init(int rank)
200 200
 /**
201 201
  * destroy function
202 202
  */
203
-void destroy(void)
203
+static void destroy(void)
204 204
 {
205 205
 	ht_destroy();
206 206
 }
... ...
@@ -88,7 +88,7 @@ static int imc_manager(struct sip_msg*, char *, char *);
88 88
 static struct mi_root* imc_mi_list_rooms(struct mi_root* cmd, void* param);
89 89
 static struct mi_root* imc_mi_list_members(struct mi_root* cmd, void* param);
90 90
 
91
-void destroy(void);
91
+static void destroy(void);
92 92
 
93 93
 /** TM bind */
94 94
 struct tm_binds tmb;
... ...
@@ -608,7 +608,7 @@ error:
608 608
 /**
609 609
  * destroy module
610 610
  */
611
-void destroy(void)
611
+static void destroy(void)
612 612
 {
613 613
 	imc_room_p irp = NULL;
614 614
 	imc_member_p member = NULL;
... ...
@@ -129,7 +129,7 @@ static int xj_exit_jconf(struct sip_msg*, char*, char*);
129 129
 static int xj_go_online(struct sip_msg*, char*, char*);
130 130
 static int xj_go_offline(struct sip_msg*, char*, char*);
131 131
 
132
-void destroy(void);
132
+static void destroy(void);
133 133
 
134 134
 /*
135 135
  * Exported functions
... ...
@@ -657,7 +657,7 @@ error:
657 657
 /**
658 658
  * destroy function of module
659 659
  */
660
-void destroy(void)
660
+static void destroy(void)
661 661
 {
662 662
 	int i;
663 663
 #ifdef XJ_EXTRA_DEBUG
... ...
@@ -43,7 +43,7 @@ MODULE_VERSION
43 43
 
44 44
 /** module functions */
45 45
 static int mod_init(void);
46
-void destroy(void);
46
+static void destroy(void);
47 47
 
48 48
 static cmd_export_t cmds[]={
49 49
 	{"setsflag", (cmd_function)w_setsflag,          1,fixup_igp_null,
... ...
@@ -120,7 +120,7 @@ static int mod_init(void)
120 120
 /**
121 121
  * destroy function
122 122
  */
123
-void destroy(void)
123
+static void destroy(void)
124 124
 {
125 125
 #ifdef STATISTICS
126 126
 	destroy_stats_collector();
... ...
@@ -263,7 +263,7 @@ error:
263 263
 }
264 264
 
265 265
 
266
-void destroy(void)
266
+static void destroy(void)
267 267
 {
268 268
 	destroy_async_lock();
269 269
 }
... ...
@@ -159,7 +159,7 @@ static int child_init(int);
159 159
 static int m_store(struct sip_msg*, char*, char*);
160 160
 static int m_dump(struct sip_msg*, char*, char*);
161 161
 
162
-void destroy(void);
162
+static void destroy(void);
163 163
 
164 164
 void m_clean_silo(unsigned int ticks, void *);
165 165
 void m_send_ontimer(unsigned int ticks, void *);
... ...
@@ -1159,7 +1159,7 @@ void m_clean_silo(unsigned int ticks, void *param)
1159 1159
 /**
1160 1160
  * destroy function
1161 1161
  */
1162
-void destroy(void)
1162
+static void destroy(void)
1163 1163
 {
1164 1164
 	msg_list_free(ml);
1165 1165
 
... ...
@@ -215,7 +215,7 @@ static int add_pipe_params(modparam_t, void *);
215 215
 /* RESERVED for future use
216 216
 static int set_load_source(modparam_t, void *);
217 217
 */
218
-void destroy(void);
218
+static void destroy(void);
219 219
 
220 220
 static cmd_export_t cmds[]={
221 221
 	{"rl_check",      (cmd_function)w_rl_check_default,     0, 0,               0,               REQUEST_ROUTE|LOCAL_ROUTE},
... ...
@@ -593,7 +593,7 @@ static int mod_init(void)
593 593
 }
594 594
 
595 595
 
596
-void destroy(void)
596
+static void destroy(void)
597 597
 {
598 598
 	int i;
599 599
 
... ...
@@ -153,7 +153,7 @@ str str_doc_col = str_init("doc");
153 153
 static int mod_init(void);
154 154
 static int child_init(int);
155 155
 int rls_handle_subscribe(struct sip_msg*, char*, char*);
156
-void destroy(void);
156
+static void destroy(void);
157 157
 int rlsubs_table_restore();
158 158
 void rlsubs_table_update(unsigned int ticks,void *param);
159 159
 int add_rls_event(modparam_t type, void* val);
... ...
@@ -492,7 +492,7 @@ static int child_init(int rank)
492 492
 /*
493 493
  * destroy function
494 494
  */
495
-void destroy(void)
495
+static void destroy(void)
496 496
 {
497 497
 	LM_DBG("start\n");
498 498
 	
... ...
@@ -42,7 +42,7 @@ MODULE_VERSION
42 42
 static int sql_query(struct sip_msg*, char*, char*, char*);
43 43
 static int sql_rfree(struct sip_msg*, char*, char*);
44 44
 static int child_init(int rank);
45
-void destroy(void);
45
+static void destroy(void);
46 46
 
47 47
 static int fixup_sql_query(void** param, int param_no);
48 48
 static int fixup_sql_rfree(void** param, int param_no);
... ...
@@ -97,7 +97,7 @@ static int child_init(int rank)
97 97
 /**
98 98
  * destroy function
99 99
  */
100
-void destroy(void)
100
+static void destroy(void)
101 101
 {
102 102
 	sql_destroy();
103 103
 }
... ...
@@ -42,7 +42,7 @@ struct tm_binds _tmx_tmb;
42 42
 
43 43
 /** module functions */
44 44
 static int mod_init(void);
45
-void destroy(void);
45
+static void destroy(void);
46 46
 
47 47
 static int t_cancel_branches(struct sip_msg* msg, char *k, char *s2);
48 48
 static int fixup_cancel_branches(void** param, int param_no);
... ...
@@ -184,7 +184,7 @@ static int mod_init(void)
184 184
 /**
185 185
  * destroy function
186 186
  */
187
-void destroy(void)
187
+static void destroy(void)
188 188
 {
189 189
 	return;
190 190
 }
... ...
@@ -54,7 +54,7 @@ MODULE_VERSION
54 54
 
55 55
 static int mod_init(void);
56 56
 static int child_init(int rank);
57
-void destroy(void);
57
+static void destroy(void);
58 58
 struct mi_root* refreshXcapDoc(struct mi_root* cmd, void* param);
59 59
 int get_auid_flag(str auid);
60 60
 str xcap_db_table = str_init("xcap");
... ...
@@ -180,7 +180,7 @@ static int child_init(int rank)
180 180
 	return 0;
181 181
 }
182 182
 
183
-void destroy(void)
183
+static void destroy(void)
184 184
 {
185 185
 	curl_global_cleanup();
186 186
 	if(xcap_db != NULL)
... ...
@@ -59,7 +59,7 @@ static int xdbg(struct sip_msg*, char*, char*);
59 59
 static int xlog_fixup(void** param, int param_no); 
60 60
 static int xdbg_fixup(void** param, int param_no); 
61 61
 
62
-void destroy(void);
62
+static void destroy(void);
63 63
 
64 64
 int pv_parse_color_name(pv_spec_p sp, str *in);
65 65
 static int pv_get_color(struct sip_msg *msg, pv_param_t *param, 
... ...
@@ -216,7 +216,7 @@ static int xdbg(struct sip_msg* msg, char* frm, char* str2)
216 216
 /**
217 217
  * destroy function
218 218
  */
219
-void destroy(void)
219
+static void destroy(void)
220 220
 {
221 221
 	if(_xlog_buf)
222 222
 		pkg_free(_xlog_buf);