Browse code

- sync function definitions with declarations for functions w/o parameters - this functions were declared as 'f()', that means they can have a arbitrary number of arguments (because of compatibility to the old style definitions in the C standard), even if they are defined as f(void) - there is no warning reported if somebody call a function like this with some parameters - another potential problem is, when somebody change the definition to accept some parameter, but forgot to change also the declaration. Then the compiler will not report wrong usage of this functions too. - sometimes ago the '-Wold-style-definition' warning was introduced, the definitions get then fixed subsequently, but not all declarations

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@5003 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt authored on 26/09/2008 11:01:51
Showing 69 changed files
... ...
@@ -73,13 +73,13 @@
73 73
 
74 74
 #define MAX_SYSLOG_SIZE  65536
75 75
 
76
-void acc_log_init();
76
+void acc_log_init(void);
77 77
 int  acc_log_request( struct sip_msg *req);
78 78
 
79 79
 #ifdef SQL_ACC
80 80
 int  acc_db_init(const str* db_url);
81 81
 int  acc_db_init_child(const str* db_url);
82
-void acc_db_close();
82
+void acc_db_close(void);
83 83
 int  acc_db_request( struct sip_msg *req);
84 84
 #endif
85 85
 
... ...
@@ -89,7 +89,7 @@ int  acc_rad_request( struct sip_msg *req );
89 89
 #endif
90 90
 
91 91
 #ifdef DIAM_ACC
92
-int  acc_diam_init();
92
+int  acc_diam_init(void);
93 93
 int  acc_diam_request( struct sip_msg *req );
94 94
 #endif
95 95
 
... ...
@@ -60,7 +60,7 @@ struct acc_extra
60 60
 
61 61
 enum {TYPE_NULL = 0, TYPE_INT, TYPE_STR};
62 62
 
63
-void init_acc_extra();
63
+void init_acc_extra(void);
64 64
 
65 65
 struct acc_extra *parse_acc_extra(char *extra);
66 66
 
... ...
@@ -31,7 +31,7 @@
31 31
 
32 32
 int auth_db_init(const str* db_url);
33 33
 int auth_db_bind(const str* db_url);
34
-void auth_db_close();
34
+void auth_db_close(void);
35 35
 
36 36
 /*
37 37
  * Authorize using Proxy-Authorization header field
... ...
@@ -37,7 +37,7 @@ struct extra_attr {
37 37
 
38 38
 #define MAX_EXTRA 4
39 39
 
40
-void init_extra_engine();
40
+void init_extra_engine(void);
41 41
 
42 42
 struct extra_attr *parse_extra_str(char *extra);
43 43
 
... ...
@@ -152,7 +152,7 @@ int ops_subst(struct sip_msg* msg, struct fis_param** src,
152 152
 
153 153
 int ops_is_avp_set(struct sip_msg* msg, struct fis_param *ap);
154 154
 
155
-int ops_print_avp();
155
+int ops_print_avp(void);
156 156
 
157 157
 #endif
158 158
 
... ...
@@ -194,7 +194,7 @@ struct carrier_tree * get_carrier_tree(int carrier_id, struct rewrite_data * rd)
194 194
 /**
195 195
  * Frees the routing data
196 196
  */
197
-void destroy_route_data();
197
+void destroy_route_data(void);
198 198
 
199 199
 /**
200 200
  * Destroys the complete routing tree data.
... ...
@@ -45,8 +45,8 @@ int init_shvars(void);
45 45
 sh_var_t* set_shvar_value(sh_var_t *shv, int_str *value, int flags);
46 46
 sh_var_t* get_shvar_by_name(str *name);
47 47
 
48
-void reset_shvars();
49
-void destroy_shvars();
48
+void reset_shvars(void);
49
+void destroy_shvars(void);
50 50
 
51 51
 #ifndef GEN_LOCK_T_PREFERED
52 52
 void shvar_lock_idx(int idx);
... ...
@@ -28,7 +28,7 @@
28 28
 
29 29
 int cpl_db_bind(const str* db_url, const str* db_table);
30 30
 int cpl_db_init(const str* db_url, const str* db_table);
31
-void cpl_db_close();
31
+void cpl_db_close(void);
32 32
 
33 33
 extern str cpl_username_col;
34 34
 extern str cpl_domain_col;
... ...
@@ -47,7 +47,7 @@
47 47
 #define LF_LEN   (1)
48 48
 
49 49
 
50
-void reset_logs();
50
+void reset_logs(void);
51 51
 
52 52
 void append_log( int nr, ...);
53 53
 
... ...
@@ -72,7 +72,7 @@ typedef struct _ac_tm
72 72
 	ac_maxval_p mv;
73 73
 } ac_tm_t, *ac_tm_p;
74 74
 
75
-ac_tm_p ac_tm_new();
75
+ac_tm_p ac_tm_new(void);
76 76
 
77 77
 int ac_tm_set_time(ac_tm_p, time_t);
78 78
 
... ...
@@ -82,7 +82,7 @@ int ac_tm_free(ac_tm_p);
82 82
 int ac_get_mweek(struct tm*);
83 83
 int ac_get_yweek(struct tm*);
84 84
 ac_maxval_p ac_get_maxval(ac_tm_p);
85
-int ac_get_wkst();
85
+int ac_get_wkst(void);
86 86
 
87 87
 int ac_print(ac_tm_p);
88 88
 
... ...
@@ -140,11 +140,11 @@ typedef struct _tr_res
140 140
 	time_t rest;
141 141
 } tr_res_t, *tr_res_p;
142 142
 
143
-tr_byxxx_p tr_byxxx_new();
143
+tr_byxxx_p tr_byxxx_new(void);
144 144
 int tr_byxxx_init(tr_byxxx_p, int);
145 145
 int tr_byxxx_free(tr_byxxx_p);
146 146
 
147
-tmrec_p tmrec_new();
147
+tmrec_p tmrec_new(void);
148 148
 int tmrec_free(tmrec_p);
149 149
 
150 150
 int tr_parse_dtstart(tmrec_p, char*);
... ...
@@ -110,8 +110,8 @@ typedef struct _dbt_cache
110 110
 
111 111
 
112 112
 
113
-int dbt_init_cache();
114
-int dbt_cache_destroy();
113
+int dbt_init_cache(void);
114
+int dbt_cache_destroy(void);
115 115
 int dbt_cache_print(int);
116 116
 
117 117
 dbt_cache_p dbt_cache_get_db(str*);
... ...
@@ -86,7 +86,7 @@ extern int dlg_db_mode;
86 86
 
87 87
 int init_dlg_db(const str *db_url, int dlg_hash_size, int db_update_period, int fetch_num_rows);
88 88
 int dlg_connect_db(const str *db_url);
89
-void destroy_dlg_db();
89
+void destroy_dlg_db(void);
90 90
 
91 91
 int remove_dialog_from_db(struct dlg_cell * cell);
92 92
 int update_dialog_dbinfo(struct dlg_cell * cell);
... ...
@@ -47,7 +47,7 @@ void init_dlg_handlers(char *rr_param, int dlg_flag,
47 47
 		pv_spec_t *timeout_avp, int default_timeout,
48 48
 		int seq_match_mode);
49 49
 
50
-void destroy_dlg_handlers();
50
+void destroy_dlg_handlers(void);
51 51
 
52 52
 void dlg_onreq(struct cell* t, int type, struct tmcb_params *param);
53 53
 
... ...
@@ -150,7 +150,7 @@ inline void destroy_dlg(struct dlg_cell *dlg);
150 150
 
151 151
 int init_dlg_table(unsigned int size);
152 152
 
153
-void destroy_dlg_table();
153
+void destroy_dlg_table(void);
154 154
 
155 155
 struct dlg_cell* build_new_dlg(str *callid, str *from_uri,
156 156
 		str *to_uri, str *from_tag);
... ...
@@ -69,7 +69,7 @@ struct dlg_profile_table {
69 69
 
70 70
 int add_profile_definitions( char* profiles, unsigned int has_value);
71 71
 
72
-void destroy_dlg_profiles();
72
+void destroy_dlg_profiles(void);
73 73
 
74 74
 struct dlg_profile_table* search_dlg_profile(str *name);
75 75
 
... ...
@@ -50,7 +50,7 @@ typedef void (*dlg_timer_handler)(struct dlg_tl *);
50 50
 
51 51
 int init_dlg_timer( dlg_timer_handler );
52 52
 
53
-void destroy_dlg_timer();
53
+void destroy_dlg_timer(void);
54 54
 
55 55
 int insert_dlg_timer(struct dlg_tl *tl, int interval);
56 56
 
... ...
@@ -77,9 +77,9 @@ typedef struct dp_param{
77 77
 	} v;
78 78
 }dp_param_t, *dp_param_p;
79 79
 
80
-int init_data();
81
-void destroy_data();
82
-int dp_load_db();
80
+int init_data(void);
81
+void destroy_data(void);
82
+int dp_load_db(void);
83 83
 
84 84
 dpl_id_p select_dpid(int id);
85 85
 
... ...
@@ -55,8 +55,8 @@ extern str subst_exp_column;
55 55
 extern str repl_exp_column; 
56 56
 extern str attrs_column; 
57 57
 
58
-int init_db_data();
59
-int dp_connect_db();
60
-void dp_disconnect_db();
58
+int init_db_data(void);
59
+int dp_connect_db(void);
60
+void dp_disconnect_db(void);
61 61
 
62 62
 #endif
... ...
@@ -82,13 +82,13 @@ extern int probing_threshhold; /*!< number of failed requests,
82 82
 						before a destination is taken into probing */ 
83 83
 extern int ds_probing_mode;
84 84
 
85
-int init_data();
86
-int init_ds_db();
85
+int init_data(void);
86
+int init_ds_db(void);
87 87
 int ds_load_list(char *lfile);
88
-int ds_connect_db();
89
-void ds_disconnect_db();
90
-int ds_load_db();
91
-int ds_destroy_list();
88
+int ds_connect_db(void);
89
+void ds_disconnect_db(void);
90
+int ds_load_db(void);
91
+int ds_destroy_list(void);
92 92
 int ds_select_dst(struct sip_msg *msg, int set, int alg, int mode);
93 93
 int ds_next_dst(struct sip_msg *msg, int mode);
94 94
 int ds_set_state(int group, str *address, int state, int type);
... ...
@@ -56,9 +56,9 @@ int is_domain_local(str* domain);
56 56
 
57 57
 int domain_db_bind(const str* db_url);
58 58
 int domain_db_init(const str* db_url);
59
-void domain_db_close();
59
+void domain_db_close(void);
60 60
 int domain_db_ver(str* name, int version);
61 61
 
62
-int reload_domain_table();
62
+int reload_domain_table(void);
63 63
 
64 64
 #endif /* DOMAIN_H */
... ...
@@ -59,7 +59,7 @@ int dp_apply_policy(struct sip_msg* _msg, char* _s1, char* _s2);
59 59
 
60 60
 int domainpolicy_db_bind(const str* db_url);
61 61
 int domainpolicy_db_init(const str* db_url);
62
-void domainpolicy_db_close();
62
+void domainpolicy_db_close(void);
63 63
 int domainpolicy_db_ver(const str* db_url, const str* name);
64 64
 
65 65
 
... ...
@@ -39,8 +39,8 @@ struct timer_list
39 39
 
40 40
 extern unsigned int time_to_kill;
41 41
 
42
-void destroy_kill();
43
-int initialize_kill();
42
+void destroy_kill(void);
43
+int initialize_kill(void);
44 44
 int schedule_to_kill( int pid );
45 45
 
46 46
 
... ...
@@ -58,6 +58,6 @@ int is_user_in(struct sip_msg* _msg, char* _hf, char* _grp);
58 58
 
59 59
 int group_db_init(const str* db_url);
60 60
 int group_db_bind(const str* db_url);
61
-void group_db_close();
61
+void group_db_close(void);
62 62
 
63 63
 #endif /* GROUP_H */
... ...
@@ -46,7 +46,7 @@ struct h350_auth_lookup_avp_params
46 46
 	pv_spec_t   password_avp_spec;
47 47
 };
48 48
 
49
-int h350_exp_fn_init();
49
+int h350_exp_fn_init(void);
50 50
 
51 51
 int h350_sipuri_lookup(struct sip_msg* _msg, pv_elem_t* _sip_uri);
52 52
 
... ...
@@ -51,7 +51,7 @@ typedef struct _ht
51 51
 } ht_t;
52 52
 
53 53
 int ht_init(int size);
54
-int ht_destroy();
54
+int ht_destroy(void);
55 55
 int ht_set_cell(str *name, int type, int_str *val);
56 56
 int ht_del_cell(str *name);
57 57
 
... ...
@@ -94,8 +94,8 @@ imc_room_p imc_get_room(str* name, str* domain);
94 94
 int imc_del_room(str* name, str* domain);
95 95
 int imc_release_room(imc_room_p room);
96 96
 
97
-int imc_htable_init();
98
-int imc_htable_destroy();
97
+int imc_htable_init(void);
98
+int imc_htable_destroy(void);
99 99
 
100 100
 
101 101
 
... ...
@@ -61,7 +61,7 @@ typedef int (*ldap_result_attr_vals_t)(
61 61
 
62 62
 typedef void (*ldap_value_free_len_t)(struct berval **_vals);
63 63
 
64
-typedef int (*ldap_result_next_t)();
64
+typedef int (*ldap_result_next_t)(void);
65 65
 
66 66
 typedef int (*ldap_str2scope_t)(char* scope_str);
67 67
 
... ...
@@ -78,7 +78,7 @@ struct ld_session {
78 78
 
79 79
 extern int add_ld_session(char* _name, LDAP* _ldh, dictionary* _d);
80 80
 extern struct ld_session* get_ld_session(char* _name);
81
-extern int free_ld_sessions();
81
+extern int free_ld_sessions(void);
82 82
 
83 83
 extern char* get_ini_key_name(char* _section, char* _key);
84 84
 
... ...
@@ -60,7 +60,7 @@ int ldap_get_attr_vals(
60 60
 	str *_attr_name,
61 61
 	struct berval ***_vals);
62 62
 
63
-int ldap_inc_result_pointer();
63
+int ldap_inc_result_pointer(void);
64 64
 
65 65
 int ldap_str2scope(char* scope_str);
66 66
 
... ...
@@ -61,7 +61,7 @@ int ldap_write_result(
61 61
 	struct ldap_result_params* _lrp,
62 62
 	struct subst_expr* _se);
63 63
 
64
-int ldap_result_next();
64
+int ldap_result_next(void);
65 65
 
66 66
 int ldap_filter_url_encode(
67 67
 	struct sip_msg* _msg,
... ...
@@ -91,6 +91,6 @@ int sdp_mangle_port (struct sip_msg *msg, char *offset, char *unused);
91 91
 int sdp_mangle_ip (struct sip_msg *msg, char *oldip, char *newip);
92 92
 
93 93
 int compile_expresions(char *port,char *ip);
94
-int free_compiled_expresions();
94
+int free_compiled_expresions(void);
95 95
 
96 96
 #endif
... ...
@@ -65,6 +65,6 @@ typedef struct rx_tx{
65 65
 int  mi_init_datagram_server(sockaddr_dtgram * address, unsigned int domain,
66 66
 								rx_tx_sockets * socks,int mode, 
67 67
 								int uid, int gid );
68
-int mi_init_datagram_buffer();
68
+int mi_init_datagram_buffer(void);
69 69
 void mi_datagram_server(int rx_sock, int tx_sock);
70 70
 #endif /*_DATAGRAM_FNC_H*/
... ...
@@ -37,7 +37,7 @@ struct extra_attr {
37 37
 
38 38
 #define MAX_EXTRA 4
39 39
 
40
-void init_extra_engine();
40
+void init_extra_engine(void);
41 41
 
42 42
 struct extra_attr *parse_extra_str(char *extra);
43 43
 
... ...
@@ -63,11 +63,11 @@ typedef struct _msg_list
63 63
 	gen_lock_t  sem_done;
64 64
 } t_msg_list, *msg_list;
65 65
 
66
-msg_list_el msg_list_el_new();
66
+msg_list_el msg_list_el_new(void);
67 67
 void msg_list_el_free(msg_list_el);
68 68
 void msg_list_el_free_all(msg_list_el);
69 69
 
70
-msg_list msg_list_init();
70
+msg_list msg_list_init(void);
71 71
 void msg_list_free(msg_list);
72 72
 int msg_list_check_msg(msg_list, int);
73 73
 int msg_list_set_flag(msg_list, int, int);
... ...
@@ -43,7 +43,7 @@ int init_addresses(void);
43 43
 /*
44 44
  * Open database connection if necessary
45 45
  */
46
-int mi_init_addresses();
46
+int mi_init_addresses(void);
47 47
 
48 48
 
49 49
 /*
... ...
@@ -86,7 +86,7 @@ struct ip_tree
86 86
 
87 87
 
88 88
 int    init_ip_tree(int);
89
-void   destroy_ip_tree();
89
+void   destroy_ip_tree(void);
90 90
 struct ip_node* mark_node( unsigned char *ip, int ip_len,
91 91
 			struct ip_node **father, unsigned char *flag);
92 92
 void   remove_node(struct ip_node *node);
... ...
@@ -28,6 +28,6 @@
28 28
 #ifndef _DLGINFO_ADD_EV_H_
29 29
 #define _DLGINFO_ADD_EV_H_
30 30
 
31
-int dlginfo_add_events();
31
+int dlginfo_add_events(void);
32 32
 
33 33
 #endif
... ...
@@ -27,6 +27,6 @@
27 27
 #ifndef _MWI_ADD_EV_H_
28 28
 #define _MWI_ADD_EV_H_
29 29
 
30
-int mwi_add_events();
30
+int mwi_add_events(void);
31 31
 
32 32
 #endif
... ...
@@ -54,7 +54,7 @@ struct rr_callback {
54 54
 };
55 55
 
56 56
 
57
-void destroy_rrcb_lists();
57
+void destroy_rrcb_lists(void);
58 58
 
59 59
 
60 60
 /*! \brief register a RR callback */
... ...
@@ -28,5 +28,5 @@
28 28
 #define MAX_CLUSTERS 10
29 29
 extern char *cluster_cfg;
30 30
 
31
-int parse_cluster_cfg();
31
+int parse_cluster_cfg(void);
32 32
 #endif
... ...
@@ -36,5 +36,5 @@ extern struct unc_as unc_as_t[];
36 36
 
37 37
 int process_unbind_action(as_p as,char *payload,int len);
38 38
 int process_bind_action(as_p as,char *payload,int len);
39
-int dispatcher_main_loop();
39
+int dispatcher_main_loop(void);
40 40
 int spawn_action_dispatcher(struct as_entry *as);
... ...
@@ -56,8 +56,8 @@ extern struct ping *servlet_pings;
56 56
 extern int use_ha;
57 57
 
58 58
 char * create_ping_event(int *evt_len,int flags,unsigned int *seqno);
59
-int prepare_ha();
60
-int spawn_pinger();
59
+int prepare_ha(void);
60
+int spawn_pinger(void);
61 61
 int print_pingtable(struct ha *ta,int idx,int lock);
62 62
 inline int init_pingtable(struct ha *table,int timeout,int maxpings);
63 63
 inline void destroy_pingtable(struct ha *table);
... ...
@@ -62,7 +62,7 @@ int extract_allowed_headers(struct sip_msg *my_msg,int allow_vias,int allow_Rrou
62 62
 /**
63 63
  * Action Dispatcher process functions
64 64
  */
65
-int dispatch_actions();
65
+int dispatch_actions(void);
66 66
 int process_action(as_p my_as);
67 67
 
68 68
 /**
... ...
@@ -69,9 +69,9 @@ extern struct statstable *seas_stats_table;
69 69
 /**
70 70
  * Initialize and destroy statistics table
71 71
  */
72
-struct statstable* init_seas_stats_table();
73
-inline int stop_stats_server();
74
-inline void destroy_seas_stats_table();
72
+struct statstable* init_seas_stats_table(void);
73
+inline int stop_stats_server(void);
74
+inline void destroy_seas_stats_table(void);
75 75
 /** Statistics server process
76 76
  * functions
77 77
  */
... ...
@@ -84,7 +84,7 @@ inline int print_stats_info(int f,int sock);
84 84
 inline void as_relay_stat(struct cell *t);
85 85
 inline void event_stat(struct cell *t);
86 86
 inline void action_stat(struct cell *t);
87
-inline void stats_reply();
87
+inline void stats_reply(void);
88 88
 #define receivedplus() \
89 89
    do{ \
90 90
       lock_get(seas_stats_table->mutex); \
... ...
@@ -70,7 +70,7 @@ struct sl_callback {
70 70
 #define SLCB_ACK_IN          (1<<1)
71 71
 
72 72
 /*! cleanup callback list */
73
-void destroy_slcb_lists();
73
+void destroy_slcb_lists(void);
74 74
 
75 75
 
76 76
 /*! register a SL callback */
... ...
@@ -36,8 +36,8 @@
36 36
 
37 37
 #define SL_TOTAG_SEPARATOR '.'
38 38
 
39
-int sl_startup();
40
-int sl_shutdown();
39
+int sl_startup(void);
40
+int sl_shutdown(void);
41 41
 int sl_send_reply( struct sip_msg *msg, int code, str *reason);
42 42
 int sl_send_reply_dlg( struct sip_msg *msg, int code, str *reason, str *tag);
43 43
 int sl_filter_ACK( struct sip_msg *msg, void *foo );
... ...
@@ -29,16 +29,16 @@
29 29
 #define NR_CELLS  256
30 30
 
31 31
 
32
-int    init_report_queue();
33
-void   destroy_report_queue();
32
+int    init_report_queue(void);
33
+void   destroy_report_queue(void);
34 34
 void   add_sms_into_report_queue(int id, struct sms_msg *sms, char *, int );
35 35
 int    relay_report_to_queue(int id, char *phone, int status, int *old_status);
36
-void   check_timeout_in_report_queue();
36
+void   check_timeout_in_report_queue(void);
37 37
 str*   get_error_str(int status);
38 38
 void   remove_sms_from_report_queue(int id);
39 39
 str*   get_text_from_report_queue(int id);
40 40
 struct sms_msg* get_sms_from_report_queue(int id);
41
-void   set_gettime_function();
41
+void   set_gettime_function(void);
42 42
 
43 43
 
44 44
 #endif
... ...
@@ -89,7 +89,7 @@ extern hashSlot_t           *hashTable;
89 89
  * Initialize shared memory used to buffer communication between the usrloc
90 90
  * module and the SNMPStats module.  (Specifically, the user and contact tables)
91 91
  */
92
-int  initInterprocessBuffers();
92
+int  initInterprocessBuffers(void);
93 93
 
94 94
 /* USRLOC Callback Handler:
95 95
  *
... ...
@@ -125,7 +125,7 @@ void handleContactCallbacks(ucontact_t *contactInfo, int type, void *param);
125 125
  *       This is made possible by simply changing the head of the interprocess
126 126
  *       buffer, and then releasing the lock.  
127 127
  */
128
-void consumeInterprocessBuffer();
128
+void consumeInterprocessBuffer(void);
129 129
 
130 130
 void freeInterprocessBuffer(void);
131 131
 
... ...
@@ -89,7 +89,7 @@ int get_socket_list_from_proto(int **ipList, int protocol);
89 89
  *       interface.  On other systems, zero will always be returned.  Details of
90 90
  *       why this is so can be found in network_stats.c
91 91
  */
92
-int get_total_bytes_waiting();
92
+int get_total_bytes_waiting(void);
93 93
 
94 94
 
95 95
 #endif
... ...
@@ -64,9 +64,9 @@ Netsnmp_Node_Handler handle_openserDialogLimitMajorAlarm;
64 64
 
65 65
 /* The following four functions are used to retrieve thresholds set via the
66 66
  * kamailio.cfg configuration file. */
67
-int get_msg_queue_minor_threshold();
68
-int get_msg_queue_major_threshold();
69
-int get_dialog_minor_threshold();
70
-int get_dialog_major_threshold();
67
+int get_msg_queue_minor_threshold(void);
68
+int get_msg_queue_major_threshold(void);
69
+int get_dialog_minor_threshold(void);
70
+int get_dialog_major_threshold(void);
71 71
 
72 72
 #endif /* OPENSEROBJECTS_H */
... ...
@@ -117,7 +117,7 @@ typedef struct openserSIPRegUserTable_context_s
117 117
  * callback for UL_CONTACT_INSERT and UL_CONTACT_EXPIRE. 
118 118
  *
119 119
  * Returns 1 on success, and zero otherwise */
120
-int registerForUSRLOCCallbacks();
120
+int registerForUSRLOCCallbacks(void);
121 121
 
122 122
 /*
123 123
  * Creates a row and inserts it.  
... ...
@@ -32,7 +32,7 @@
32 32
 
33 33
 int reg_statistic( char* name);
34 34
 
35
-int register_all_mod_stats();
35
+int register_all_mod_stats(void);
36 36
 
37 37
 
38 38
 #endif
... ...
@@ -324,13 +324,13 @@ struct s_table
324 324
 extern int syn_branch;
325 325
 
326 326
 
327
-void reset_kr();
327
+void reset_kr(void);
328 328
 void set_kr( enum kill_reason kr );
329
-enum kill_reason get_kr();
329
+enum kill_reason get_kr(void);
330 330
 
331
-struct s_table* get_tm_table();
332
-struct s_table* init_hash_table();
333
-void   free_hash_table( );
331
+struct s_table* get_tm_table(void);
332
+struct s_table* init_hash_table(void);
333
+void   free_hash_table(void);
334 334
 void   free_cell( struct cell* dead_cell );
335 335
 struct cell*  build_cell( struct sip_msg* p_msg );
336 336
 void   remove_from_hash_table_unsafe( struct cell * p_cell);
... ...
@@ -339,11 +339,11 @@ void   insert_into_hash_table( struct cell * p_cell, unsigned int _hash);
339 339
 #endif
340 340
 void   insert_into_hash_table_unsafe( struct cell * p_cell, unsigned int _hash );
341 341
 
342
-unsigned int transaction_count( void );
342
+unsigned int transaction_count(void);
343 343
 
344 344
 /* Unix socket variant */
345 345
 int unixsock_hash(str* msg);
346
-		    
346
+
347 347
 #endif
348 348
 
349 349
 
... ...
@@ -72,8 +72,8 @@ enum timer_groups {
72 72
 #define IPC_PERMISSIONS 0666		/*!< Uni*x permissions for IPC */
73 73
 
74 74
 
75
-int lock_initialize();
76
-void lock_cleanup();
75
+int lock_initialize(void);
76
+void lock_cleanup(void);
77 77
 
78 78
 #ifdef DBG_LOCK
79 79
 #define lock(_s) _lock( (_s), __FILE__, __FUNCTION__, __LINE__ )
... ...
@@ -46,7 +46,7 @@ int fixup_t_write( void** param, int param_no);
46 46
 
47 47
 int parse_tw_append( modparam_t type, void* val);
48 48
 
49
-int init_twrite_lines();
49
+int init_twrite_lines(void);
50 50
 
51 51
 int init_twrite_sock(void);
52 52
 
... ...
@@ -161,7 +161,7 @@ inline static void force_retr(struct retr_buf *rb)
161 161
 }
162 162
 
163 163
 
164
-void tm_shutdown();
164
+void tm_shutdown(void);
165 165
 
166 166
 
167 167
 /* function returns:
... ...
@@ -47,7 +47,7 @@ void e2e_cancel( struct sip_msg *cancel_msg, struct cell *t_cancel,
47 47
 int e2e_cancel_branch( struct sip_msg *cancel_msg, struct cell *t_cancel,
48 48
 		struct cell *t_invite, int branch );
49 49
 
50
-int add_blind_uac( );
50
+int add_blind_uac(void);
51 51
 
52 52
 int t_replicate(struct sip_msg *p_msg, str *dst, int flags);
53 53
 
... ...
@@ -58,7 +58,7 @@ int t_forward_ack( struct sip_msg* p_msg );
58 58
 
59 59
 void t_on_branch( unsigned int go_to );
60 60
 
61
-unsigned int get_on_branch();
61
+unsigned int get_on_branch(void);
62 62
 
63 63
 #endif
64 64
 
... ...
@@ -209,9 +209,9 @@ extern unsigned int tmcb_pending_id;
209 209
 	( req_in_tmcb_hl->first!=0 )
210 210
 
211 211
 
212
-int init_tmcb_lists();
212
+int init_tmcb_lists(void);
213 213
 
214
-void destroy_tmcb_lists();
214
+void destroy_tmcb_lists(void);
215 215
 
216 216
 
217 217
 /*!
... ...
@@ -46,7 +46,7 @@ extern unsigned int     global_msg_id;
46 46
 extern int ruri_matching;
47 47
 extern int via1_matching;
48 48
 
49
-void init_t();
49
+void init_t(void);
50 50
 int init_rb( struct retr_buf *rb, struct sip_msg *msg );
51 51
 struct cell* t_lookupOriginalT( struct sip_msg* p_msg );
52 52
 int t_reply_matching( struct sip_msg* , int* );
... ...
@@ -73,18 +73,18 @@ int t_check( struct sip_msg* , int *branch );
73 73
 typedef struct cell * (*tlookuporiginalt_f)(struct sip_msg*);
74 74
 
75 75
 typedef struct cell * (*tgett_f)(void);
76
-struct cell *get_t();
76
+struct cell *get_t(void);
77 77
 
78 78
 /* use carefully or better not at all -- current transaction is 
79 79
  * primarily set by lookup functions */
80 80
 void set_t(struct cell *t);
81 81
 
82 82
 
83
-struct cell *get_cancelled_t();
84
-void reset_cancelled_t();
83
+struct cell *get_cancelled_t(void);
84
+void reset_cancelled_t(void);
85 85
 
86
-struct cell *get_e2eack_t();
87
-void reset_e2eack_t();
86
+struct cell *get_e2eack_t(void);
87
+void reset_e2eack_t(void);
88 88
 
89 89
 
90 90
 #define T_GET_TI       "t_get_trans_ident"
... ...
@@ -112,15 +112,15 @@ void on_negative_reply( struct cell* t, struct sip_msg* msg,
112 112
 
113 113
 typedef int (*tget_picked_f)(void);
114 114
 
115
-int t_get_picked_branch();
115
+int t_get_picked_branch(void);
116 116
 
117 117
 /* set which 'reply' structure to take if only negative
118 118
    replies arrive 
119 119
 */
120 120
 void t_on_negative( unsigned int go_to );
121
-unsigned int get_on_negative();
121
+unsigned int get_on_negative(void);
122 122
 void t_on_reply( unsigned int go_to );
123
-unsigned int get_on_reply();
123
+unsigned int get_on_reply(void);
124 124
 
125 125
 /* Retransmits the last sent inbound reply.
126 126
  * Returns  -1 - error
... ...
@@ -128,7 +128,7 @@ unsigned int get_on_reply();
128 128
  */
129 129
 int t_retransmit_reply( struct cell *t );
130 130
 
131
-void tm_init_tags();
131
+void tm_init_tags(void);
132 132
 
133 133
 int unixsock_t_reply(str* msg);
134 134
 
... ...
@@ -100,9 +100,9 @@ extern unsigned int timer_id2timeout[NR_OF_TIMER_LISTS];
100 100
 
101 101
 
102 102
 
103
-struct timer_table * tm_init_timers();
104
-void unlink_timer_lists();
105
-void free_timer_table();
103
+struct timer_table * tm_init_timers(void);
104
+void unlink_timer_lists(void);
105
+void free_timer_table(void);
106 106
 void init_timer_list( enum lists list_id);
107 107
 void reset_timer_list( enum lists list_id);
108 108
 
... ...
@@ -121,6 +121,6 @@ void timer_routine( unsigned int, void*);
121 121
 
122 122
 void utimer_routine( utime_t, void*);
123 123
 
124
-struct timer_table *get_timertable();
124
+struct timer_table *get_timertable(void);
125 125
 
126 126
 #endif
... ...
@@ -39,11 +39,11 @@ struct uac_credential {
39 39
 };
40 40
 
41 41
 
42
-int has_credentials();
42
+int has_credentials(void);
43 43
 
44 44
 int add_credential( unsigned int type, void *val);
45 45
 
46
-void destroy_credentials();
46
+void destroy_credentials(void);
47 47
 
48 48
 int uac_auth( struct sip_msg *msg);
49 49
 
... ...
@@ -37,7 +37,7 @@
37 37
 #define FROM_AUTO_RESTORE    (1)
38 38
 #define FROM_MANUAL_RESTORE  (2)
39 39
 
40
-void init_from_replacer();
40
+void init_from_replacer(void);
41 41
 
42 42
 int replace_from( struct sip_msg *msg, str *from_dsp, str *from_uri);
43 43
 
... ...
@@ -42,9 +42,9 @@
42 42
 #define RESET_ADDED    (1<<0)
43 43
 #define RESET_DEFAULT  (1<<1)
44 44
 
45
-void init_filters();
45
+void init_filters(void);
46 46
 void set_default_rule( int type );
47
-void reset_filters();
47
+void reset_filters(void);
48 48
 void add_default_filter( int type, regex_t *filter);
49 49
 int add_filter( int type, regex_t *filter, int flags);
50 50
 int run_filters(char *s);
... ...
@@ -55,7 +55,7 @@ int does_uri_exist(struct sip_msg* _msg, char* _table, char* _s2);
55 55
 
56 56
 int uridb_db_init(const str* db_url);
57 57
 int uridb_db_bind(const str* db_url);
58
-void uridb_db_close();
58
+void uridb_db_close(void);
59 59
 int uridb_db_ver(const str* db_url, str* name);
60 60
 
61 61
 #endif /* CHECKS_H */
... ...
@@ -93,7 +93,7 @@ int get_all_ucontacts(void *, int, unsigned int,
93 93
 
94 94
 
95 95
 /* Sums up the total number of users in memory, over all domains. */
96
-unsigned long get_number_of_users();
96
+unsigned long get_number_of_users(void);
97 97
 
98 98
 
99 99
 /*! \brief
... ...
@@ -77,9 +77,9 @@ void slot_add(hslot_t* _s, struct urecord* _r);
77 77
  */
78 78
 void slot_rem(hslot_t* _s, struct urecord* _r);
79 79
 
80
-int ul_init_locks();
81
-void ul_unlock_locks();
82
-void ul_destroy_locks();
80
+int ul_init_locks(void);
81
+void ul_unlock_locks(void);
82
+void ul_destroy_locks(void);
83 83
 
84 84
 #ifndef GEN_LOCK_T_PREFERED
85 85
 void ul_lock_idx(int idx);
... ...
@@ -68,9 +68,9 @@ extern struct ulcb_head_list*  ulcb_list;
68 68
 	( (ulcb_list->reg_types)|(_types_) )
69 69
 
70 70
 
71
-int init_ulcb_list();
71
+int init_ulcb_list(void);
72 72
 
73
-void destroy_ulcb_list();
73
+void destroy_ulcb_list(void);
74 74
 
75 75
 
76 76
 /*! \brief register a callback for several types of events */
... ...
@@ -62,9 +62,9 @@ extern xmpp_cb_list_t*  _xmpp_cb_list;
62 62
 	((_xmpp_cb_list->types)|(_types_) )
63 63
 
64 64
 
65
-int init_xmpp_cb_list();
65
+int init_xmpp_cb_list(void);
66 66
 
67
-void destroy_xmpp_cb_list();
67
+void destroy_xmpp_cb_list(void);
68 68
 
69 69
 
70 70
 int register_xmpp_cb( int types, xmpp_cb_f f, void *param );