forked from osmocom/wireshark
Warning fixes: function declaration isn’t a prototype
svn path=/trunk/; revision=23862
This commit is contained in:
parent
6869154121
commit
0c797861ba
|
@ -79,7 +79,7 @@ color_filters_set_tmp(guint8 filt_nr, gchar *filter, gboolean disabled);
|
|||
*
|
||||
*/
|
||||
void
|
||||
color_filters_reset_tmp();
|
||||
color_filters_reset_tmp(void);
|
||||
|
||||
/* Prime the epan_dissect_t with all the compiler
|
||||
* color filters of the current filter list.
|
||||
|
|
|
@ -675,7 +675,7 @@ static gint init_tpncp_data_fields_info(tpncp_data_field_info *data_fields_info,
|
|||
|
||||
/*-------------------------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
static gint init_tpncp_db() {
|
||||
static gint init_tpncp_db(void) {
|
||||
gchar *tpncp_dat_file_path = NULL;
|
||||
FILE *file = NULL;
|
||||
|
||||
|
|
|
@ -432,8 +432,8 @@ static guint dissect_wlccp_mip_tlv(proto_tree *_tree, tvbuff_t *_tvb, guint _off
|
|||
|
||||
static void set_mic_flag(gboolean flag);
|
||||
static void set_tlv_flag(gboolean flag);
|
||||
static gboolean get_tlv_flag();
|
||||
static gboolean get_mic_flag();
|
||||
static gboolean get_tlv_flag(void);
|
||||
static gboolean get_mic_flag(void);
|
||||
|
||||
/* Initialize external dissector handles */
|
||||
/* We'll try to use the EAP dissector when necessary */
|
||||
|
@ -1043,12 +1043,12 @@ static void set_tlv_flag(gboolean flag)
|
|||
tlv_flag=flag;
|
||||
} /* set_tlv_flag */
|
||||
|
||||
static gboolean get_tlv_flag()
|
||||
static gboolean get_tlv_flag(void)
|
||||
{
|
||||
return(tlv_flag);
|
||||
} /* get_tlv_flag */
|
||||
|
||||
static gboolean get_mic_flag()
|
||||
static gboolean get_mic_flag(void)
|
||||
{
|
||||
return(mic_flag);
|
||||
} /* get_mic_flag */
|
||||
|
|
|
@ -65,7 +65,7 @@ extern address bs_address; /* declared in packet-wmx.c */
|
|||
extern guint max_logical_bands; /* declared in wimax_compact_dlmap_ie_decoder.c */
|
||||
extern gboolean is_down_link(address *src_address);/* declared in packet-wmx.c */
|
||||
extern void proto_register_mac_mgmt_msg(void); /* defined in macmgmtmsgdecoder.c */
|
||||
extern void init_wimax_globals(); /* defined in msg_ulmap.c */
|
||||
extern void init_wimax_globals(void); /* defined in msg_ulmap.c */
|
||||
|
||||
extern void dissect_mac_mgmt_msg_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
|
||||
|
||||
|
|
|
@ -616,7 +616,7 @@ static hf_register_info hf[] =
|
|||
};
|
||||
|
||||
/* This gets called each time a capture file is loaded. */
|
||||
void init_wimax_globals()
|
||||
void init_wimax_globals(void)
|
||||
{
|
||||
cqich_id_size = 0;
|
||||
harq = 0;
|
||||
|
|
|
@ -58,7 +58,7 @@ extern void proto_register_wimax_compact_ulmap_ie(void);
|
|||
extern void wimax_defragment_init(void);
|
||||
|
||||
/* Global functions */
|
||||
void proto_register_wimax();
|
||||
void proto_register_wimax(void);
|
||||
void proto_reg_wimax(void);
|
||||
void proto_reg_handoff_wimax(void);
|
||||
gboolean is_down_link(address *src_address);
|
||||
|
|
4
tshark.c
4
tshark.c
|
@ -657,7 +657,7 @@ output_file_description(const char *fname)
|
|||
}
|
||||
|
||||
static void
|
||||
print_current_user() {
|
||||
print_current_user(void) {
|
||||
gchar *cur_user, *cur_group;
|
||||
if (started_with_special_privs()) {
|
||||
cur_user = get_cur_username();
|
||||
|
@ -674,7 +674,7 @@ print_current_user() {
|
|||
}
|
||||
|
||||
static void
|
||||
check_capture_privs() {
|
||||
check_capture_privs(void) {
|
||||
#ifdef _WIN32
|
||||
load_wpcap();
|
||||
/* Warn the user if npf.sys isn't loaded. */
|
||||
|
|
Loading…
Reference in New Issue