From d154880bd983bfe539316fb4d5a92558358b12d8 Mon Sep 17 00:00:00 2001 From: jmayer Date: Fri, 14 Dec 2007 15:14:40 +0000 Subject: [PATCH] =?utf8?q?Warning=20fixes:=20function=20declaration=20isn?= =?utf8?q?=E2=80=99t=20a=20prototype?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23862 f5534014-38df-0310-8fa8-9805f1628bb7 --- color_filters.h | 2 +- epan/dissectors/packet-tpncp.c | 2 +- epan/dissectors/packet-wlccp.c | 8 ++++---- plugins/wimax/mac_hd_generic_decoder.c | 2 +- plugins/wimax/msg_ulmap.c | 2 +- plugins/wimax/packet-wmx.c | 2 +- tshark.c | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/color_filters.h b/color_filters.h index 3daff31153..5eebc3b6da 100644 --- a/color_filters.h +++ b/color_filters.h @@ -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. diff --git a/epan/dissectors/packet-tpncp.c b/epan/dissectors/packet-tpncp.c index acc3398068..aae96600e8 100644 --- a/epan/dissectors/packet-tpncp.c +++ b/epan/dissectors/packet-tpncp.c @@ -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; diff --git a/epan/dissectors/packet-wlccp.c b/epan/dissectors/packet-wlccp.c index 897a1bf8c5..2b46c3650e 100644 --- a/epan/dissectors/packet-wlccp.c +++ b/epan/dissectors/packet-wlccp.c @@ -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 */ diff --git a/plugins/wimax/mac_hd_generic_decoder.c b/plugins/wimax/mac_hd_generic_decoder.c index 73948c0612..bb17325cc6 100644 --- a/plugins/wimax/mac_hd_generic_decoder.c +++ b/plugins/wimax/mac_hd_generic_decoder.c @@ -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); diff --git a/plugins/wimax/msg_ulmap.c b/plugins/wimax/msg_ulmap.c index 53700bce5b..b6f507ada5 100644 --- a/plugins/wimax/msg_ulmap.c +++ b/plugins/wimax/msg_ulmap.c @@ -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; diff --git a/plugins/wimax/packet-wmx.c b/plugins/wimax/packet-wmx.c index ccb809ebef..1e756d9b6c 100644 --- a/plugins/wimax/packet-wmx.c +++ b/plugins/wimax/packet-wmx.c @@ -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); diff --git a/tshark.c b/tshark.c index 78c715bfbe..8c7016b3c1 100644 --- a/tshark.c +++ b/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. */ -- 2.34.1