From a7e417bf24a05fe221260f8ecacc0ade6634bebd Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Thu, 14 Nov 2013 06:21:02 +0000 Subject: [PATCH] Get rid of Warinings [-Wmissing-prototypes] svn path=/trunk/; revision=53311 --- ui/cli/tap-afpstat.c | 2 ++ ui/cli/tap-ansi_astat.c | 1 + ui/cli/tap-bootpstat.c | 1 + ui/cli/tap-comparestat.c | 2 ++ ui/cli/tap-dcerpcstat.c | 2 ++ ui/cli/tap-diameter-avp.c | 1 + ui/cli/tap-expert.c | 2 ++ ui/cli/tap-follow.c | 2 ++ ui/cli/tap-funnel.c | 1 + ui/cli/tap-gsm_astat.c | 1 + ui/cli/tap-h225counter.c | 1 + ui/cli/tap-h225rassrt.c | 2 ++ ui/cli/tap-hosts.c | 2 +- ui/cli/tap-httpstat.c | 1 + ui/cli/tap-icmpstat.c | 2 ++ ui/cli/tap-icmpv6stat.c | 2 ++ ui/cli/tap-iostat.c | 2 ++ ui/cli/tap-iousers.c | 2 ++ ui/cli/tap-macltestat.c | 2 ++ ui/cli/tap-megacostat.c | 2 +- ui/cli/tap-mgcpstat.c | 2 ++ ui/cli/tap-protocolinfo.c | 2 ++ ui/cli/tap-protohierstat.c | 2 ++ ui/cli/tap-radiusstat.c | 2 ++ ui/cli/tap-rlcltestat.c | 1 + ui/cli/tap-rpcprogs.c | 2 ++ ui/cli/tap-rpcstat.c | 2 ++ ui/cli/tap-rtp.c | 2 ++ ui/cli/tap-rtspstat.c | 3 ++- ui/cli/tap-scsistat.c | 2 ++ ui/cli/tap-sctpchunkstat.c | 2 ++ ui/cli/tap-sipstat.c | 2 ++ ui/cli/tap-smbsids.c | 1 + ui/cli/tap-smbstat.c | 2 ++ ui/cli/tap-stats_tree.c | 4 +++- ui/cli/tap-sv.c | 2 ++ ui/cli/tap-wspstat.c | 2 ++ 37 files changed, 64 insertions(+), 4 deletions(-) diff --git a/ui/cli/tap-afpstat.c b/ui/cli/tap-afpstat.c index 710a967b1a..814fb205ec 100644 --- a/ui/cli/tap-afpstat.c +++ b/ui/cli/tap-afpstat.c @@ -36,6 +36,8 @@ #include #include "epan/timestats.h" +void register_tap_listener_afpstat(void); + /* used to keep track of the statistics for an entire program interface */ typedef struct _afpstat_t { char *filter; diff --git a/ui/cli/tap-ansi_astat.c b/ui/cli/tap-ansi_astat.c index 6c7ad07d04..65d4c1c891 100644 --- a/ui/cli/tap-ansi_astat.c +++ b/ui/cli/tap-ansi_astat.c @@ -41,6 +41,7 @@ #include #include +void register_tap_listener_ansi_astat(void); typedef struct _ansi_a_stat_t { int bsmap_message_type[0xff]; diff --git a/ui/cli/tap-bootpstat.c b/ui/cli/tap-bootpstat.c index e6b367ea47..0aaa7a77c5 100644 --- a/ui/cli/tap-bootpstat.c +++ b/ui/cli/tap-bootpstat.c @@ -32,6 +32,7 @@ #include #include +void register_tap_listener_gtkdhcpstat(void); typedef const char* bootp_info_value_t; diff --git a/ui/cli/tap-comparestat.c b/ui/cli/tap-comparestat.c index ccc9cf6361..eb4ba9f7d3 100644 --- a/ui/cli/tap-comparestat.c +++ b/ui/cli/tap-comparestat.c @@ -57,6 +57,8 @@ #define TTL_SEARCH 5 +void register_tap_listener_comparestat(void); + /* information which will be printed */ typedef struct _for_print { guint count; diff --git a/ui/cli/tap-dcerpcstat.c b/ui/cli/tap-dcerpcstat.c index d01184e533..71a8393844 100644 --- a/ui/cli/tap-dcerpcstat.c +++ b/ui/cli/tap-dcerpcstat.c @@ -36,6 +36,8 @@ #define MICROSECS_PER_SEC 1000000 #define NANOSECS_PER_SEC 1000000000 +void register_tap_listener_dcerpcstat(void); + /* used to keep track of statistics for a specific procedure */ typedef struct _rpc_procedure_t { const char *proc; diff --git a/ui/cli/tap-diameter-avp.c b/ui/cli/tap-diameter-avp.c index 3641c9775f..65ea9dc31f 100644 --- a/ui/cli/tap-diameter-avp.c +++ b/ui/cli/tap-diameter-avp.c @@ -51,6 +51,7 @@ #include "epan/to_str.h" #include "epan/dissectors/packet-diameter.h" +void register_tap_listener_diameteravp(void); /* used to keep track of the statistics for an entire program interface */ typedef struct _diameteravp_t { diff --git a/ui/cli/tap-expert.c b/ui/cli/tap-expert.c index 88936eccc5..6f52cced7e 100644 --- a/ui/cli/tap-expert.c +++ b/ui/cli/tap-expert.c @@ -35,6 +35,8 @@ #include #include +void register_tap_listener_expert_info(void); + /* Tap data */ typedef enum severity_level_t { chat_level=0, diff --git a/ui/cli/tap-follow.c b/ui/cli/tap-follow.c index 1dd75e2a3f..a04d097d47 100644 --- a/ui/cli/tap-follow.c +++ b/ui/cli/tap-follow.c @@ -55,6 +55,8 @@ #include #endif +void register_tap_listener_follow(void); + WS_DLL_PUBLIC FILE *data_out_file; typedef enum diff --git a/ui/cli/tap-funnel.c b/ui/cli/tap-funnel.c index 673082e1a8..b9a4982d18 100644 --- a/ui/cli/tap-funnel.c +++ b/ui/cli/tap-funnel.c @@ -36,6 +36,7 @@ #include #include +void register_tap_listener_gtkfunnel(void); struct _funnel_text_window_t { gchar* title; diff --git a/ui/cli/tap-gsm_astat.c b/ui/cli/tap-gsm_astat.c index e41f5e4951..92e98cc3aa 100644 --- a/ui/cli/tap-gsm_astat.c +++ b/ui/cli/tap-gsm_astat.c @@ -41,6 +41,7 @@ #include #include +void register_tap_listener_gsm_astat(void); typedef struct _gsm_a_stat_t { int bssmap_message_type[0xff]; diff --git a/ui/cli/tap-h225counter.c b/ui/cli/tap-h225counter.c index 90f4186601..81d8df66c0 100644 --- a/ui/cli/tap-h225counter.c +++ b/ui/cli/tap-h225counter.c @@ -54,6 +54,7 @@ #define REL_CMP_REASONS 26 #define FACILITY_REASONS 11 +void register_tap_listener_h225counter(void); /* used to keep track of the statistics for an entire program interface */ typedef struct _h225counter_t { diff --git a/ui/cli/tap-h225rassrt.c b/ui/cli/tap-h225rassrt.c index 45a8fc068c..6fc19c20ad 100644 --- a/ui/cli/tap-h225rassrt.c +++ b/ui/cli/tap-h225rassrt.c @@ -40,6 +40,8 @@ /* following values represent the size of their valuestring arrays */ #define NUM_RAS_STATS 7 +void register_tap_listener_h225rassrt(void); + static const value_string ras_message_category[] = { { 0, "Gatekeeper "}, { 1, "Registration "}, diff --git a/ui/cli/tap-hosts.c b/ui/cli/tap-hosts.c index 59c3cc068e..3fc0bd8fe8 100644 --- a/ui/cli/tap-hosts.c +++ b/ui/cli/tap-hosts.c @@ -38,7 +38,7 @@ #include #include - +void register_tap_listener_hosts(void); gboolean dump_v4 = FALSE; gboolean dump_v6 = FALSE; diff --git a/ui/cli/tap-httpstat.c b/ui/cli/tap-httpstat.c index 7c2ae16182..8a4aa95334 100644 --- a/ui/cli/tap-httpstat.c +++ b/ui/cli/tap-httpstat.c @@ -34,6 +34,7 @@ #include #include +void register_tap_listener_gtkhttpstat(void); /* used to keep track of the statictics for an entire program interface */ typedef struct _http_stats_t { diff --git a/ui/cli/tap-icmpstat.c b/ui/cli/tap-icmpstat.c index 89874776e2..213e149ae8 100644 --- a/ui/cli/tap-icmpstat.c +++ b/ui/cli/tap-icmpstat.c @@ -40,6 +40,8 @@ #include #include +void register_tap_listener_icmpstat(void); + /* used to keep track of the ICMP statistics */ typedef struct _icmpstat_t { char *filter; diff --git a/ui/cli/tap-icmpv6stat.c b/ui/cli/tap-icmpv6stat.c index 39c54d0549..fb486c0ee2 100644 --- a/ui/cli/tap-icmpv6stat.c +++ b/ui/cli/tap-icmpv6stat.c @@ -41,6 +41,8 @@ #include #include +void register_tap_listener_icmpv6stat(void); + /* used to keep track of the ICMPv6 statistics */ typedef struct _icmpv6stat_t { char *filter; diff --git a/ui/cli/tap-iostat.c b/ui/cli/tap-iostat.c index c7f8828c0c..ac826c3543 100644 --- a/ui/cli/tap-iostat.c +++ b/ui/cli/tap-iostat.c @@ -46,6 +46,8 @@ #define CALC_TYPE_AVG 7 #define CALC_TYPE_LOAD 8 +void register_tap_listener_iostat(void); + typedef struct { const char *func_name; int calc_type; diff --git a/ui/cli/tap-iousers.c b/ui/cli/tap-iousers.c index e1bac1f0ac..4c7ebbf9e8 100644 --- a/ui/cli/tap-iousers.c +++ b/ui/cli/tap-iousers.c @@ -47,6 +47,8 @@ #include #include +void register_tap_listener_iousers(void); + typedef struct _io_users_t { const char *type; char *filter; diff --git a/ui/cli/tap-macltestat.c b/ui/cli/tap-macltestat.c index 1a9847eff2..70865f9e1a 100644 --- a/ui/cli/tap-macltestat.c +++ b/ui/cli/tap-macltestat.c @@ -35,6 +35,8 @@ #include #include +void register_tap_listener_mac_lte_stat(void); + /**********************************************/ /* Table column identifiers and title strings */ diff --git a/ui/cli/tap-megacostat.c b/ui/cli/tap-megacostat.c index 325caa154b..1111c22267 100644 --- a/ui/cli/tap-megacostat.c +++ b/ui/cli/tap-megacostat.c @@ -39,7 +39,7 @@ #include "ui/tap-megaco-common.h" - +void register_tap_listener_megacostat(void); static void megacostat_draw(void *pms) diff --git a/ui/cli/tap-mgcpstat.c b/ui/cli/tap-mgcpstat.c index 321686f035..f3cdcc9fc3 100644 --- a/ui/cli/tap-mgcpstat.c +++ b/ui/cli/tap-mgcpstat.c @@ -37,6 +37,8 @@ #define NUM_TIMESTATS 11 +void register_tap_listener_mgcpstat(void); + /* used to keep track of the statistics for an entire program interface */ typedef struct _mgcpstat_t { char *filter; diff --git a/ui/cli/tap-protocolinfo.c b/ui/cli/tap-protocolinfo.c index c088d3ebfd..7bdb031b19 100644 --- a/ui/cli/tap-protocolinfo.c +++ b/ui/cli/tap-protocolinfo.c @@ -37,6 +37,8 @@ #include #include +void register_tap_listener_protocolinfo(void); + typedef struct _pci_t { char *filter; int hf_index; diff --git a/ui/cli/tap-protohierstat.c b/ui/cli/tap-protohierstat.c index 5141746846..3d7fa9a27e 100644 --- a/ui/cli/tap-protohierstat.c +++ b/ui/cli/tap-protohierstat.c @@ -36,6 +36,8 @@ #include #include +void register_tap_listener_protohierstat(void); + typedef struct _phs_t { struct _phs_t *sibling; struct _phs_t *child; diff --git a/ui/cli/tap-radiusstat.c b/ui/cli/tap-radiusstat.c index 24b1f0381b..b8f3bfc8ff 100644 --- a/ui/cli/tap-radiusstat.c +++ b/ui/cli/tap-radiusstat.c @@ -35,6 +35,8 @@ #include #include "epan/timestats.h" +void register_tap_listener_radiusstat(void); + typedef enum _radius_category { RADIUS_CAT_OVERALL = 0, RADIUS_CAT_ACCESS, diff --git a/ui/cli/tap-rlcltestat.c b/ui/cli/tap-rlcltestat.c index 20af7f1c11..70220df125 100644 --- a/ui/cli/tap-rlcltestat.c +++ b/ui/cli/tap-rlcltestat.c @@ -35,6 +35,7 @@ #include #include +void register_tap_listener_rlc_lte_stat(void); enum { UEID_COLUMN, diff --git a/ui/cli/tap-rpcprogs.c b/ui/cli/tap-rpcprogs.c index de74da4419..31f6638b01 100644 --- a/ui/cli/tap-rpcprogs.c +++ b/ui/cli/tap-rpcprogs.c @@ -40,6 +40,8 @@ #define MICROSECS_PER_SEC 1000000 #define NANOSECS_PER_SEC 1000000000 +void register_tap_listener_rpcprogs(void); + /* used to keep track of statistics for a specific program/version */ typedef struct _rpc_program_t { struct _rpc_program_t *next; diff --git a/ui/cli/tap-rpcstat.c b/ui/cli/tap-rpcstat.c index 86f435ae5e..0d8d1d40fa 100644 --- a/ui/cli/tap-rpcstat.c +++ b/ui/cli/tap-rpcstat.c @@ -42,6 +42,8 @@ #define MICROSECS_PER_SEC 1000000 #define NANOSECS_PER_SEC 1000000000 +void register_tap_listener_rpcstat(void); + /* used to keep track of statistics for a specific procedure */ typedef struct _rpc_procedure_t { const char *proc; diff --git a/ui/cli/tap-rtp.c b/ui/cli/tap-rtp.c index f01a93ccd3..f4ca1ea056 100644 --- a/ui/cli/tap-rtp.c +++ b/ui/cli/tap-rtp.c @@ -49,6 +49,8 @@ #include "ui/rtp_stream.h" #include "ui/tap-rtp-common.h" +void register_tap_listener_rtp_streams(void); + /* The one and only global rtpstream_tapinfo_t structure for tshark and wireshark. */ static rtpstream_tapinfo_t the_tapinfo_struct = diff --git a/ui/cli/tap-rtspstat.c b/ui/cli/tap-rtspstat.c index d6d7fd8faf..1a57e9488b 100644 --- a/ui/cli/tap-rtspstat.c +++ b/ui/cli/tap-rtspstat.c @@ -38,7 +38,8 @@ #include "register.h" #include - +void register_tap_listener_gtkrtspstat(void); + /* used to keep track of the statictics for an entire program interface */ typedef struct _rtsp_stats_t { char *filter; diff --git a/ui/cli/tap-scsistat.c b/ui/cli/tap-scsistat.c index 31a2cff8a3..4d8e8033a2 100644 --- a/ui/cli/tap-scsistat.c +++ b/ui/cli/tap-scsistat.c @@ -38,6 +38,8 @@ #include #include +void register_tap_listener_scsistat(void); + static guint8 scsi_program=0; /* used to keep track of statistics for a specific procedure */ diff --git a/ui/cli/tap-sctpchunkstat.c b/ui/cli/tap-sctpchunkstat.c index 96c51b0999..ffce045d46 100644 --- a/ui/cli/tap-sctpchunkstat.c +++ b/ui/cli/tap-sctpchunkstat.c @@ -37,6 +37,8 @@ #include #include +void register_tap_listener_sctpstat(void); + typedef struct sctp_ep { struct sctp_ep* next; address src; diff --git a/ui/cli/tap-sipstat.c b/ui/cli/tap-sipstat.c index 7be4c3511b..5c26d14750 100644 --- a/ui/cli/tap-sipstat.c +++ b/ui/cli/tap-sipstat.c @@ -35,6 +35,8 @@ #include "epan/value_string.h" #include +void register_tap_listener_sipstat(void); + /* used to keep track of the statictics for an entire program interface */ typedef struct _sip_stats_t { char *filter; diff --git a/ui/cli/tap-smbsids.c b/ui/cli/tap-smbsids.c index f9899e2033..f2fa6942ad 100644 --- a/ui/cli/tap-smbsids.c +++ b/ui/cli/tap-smbsids.c @@ -35,6 +35,7 @@ #include "epan/value_string.h" #include +void register_tap_listener_smbsids(void); static int smbsids_packet(void *pss _U_, packet_info *pinfo _U_, epan_dissect_t *edt _U_, const void *psi _U_) diff --git a/ui/cli/tap-smbstat.c b/ui/cli/tap-smbstat.c index e1e2821724..781e3f3a81 100644 --- a/ui/cli/tap-smbstat.c +++ b/ui/cli/tap-smbstat.c @@ -38,6 +38,8 @@ #define MICROSECS_PER_SEC 1000000 #define NANOSECS_PER_SEC 1000000000 +void register_tap_listener_smbstat(void); + /* used to keep track of the statistics for an entire program interface */ typedef struct _smbstat_t { char *filter; diff --git a/ui/cli/tap-stats_tree.c b/ui/cli/tap-stats_tree.c index 58201a7df7..7e893c39af 100644 --- a/ui/cli/tap-stats_tree.c +++ b/ui/cli/tap-stats_tree.c @@ -34,6 +34,8 @@ #include #include +void register_tap_listener_stats_tree_stat(void); + /* actually unused */ struct _st_node_pres { void *dummy; @@ -118,7 +120,7 @@ init_stats_tree(const char *opt_arg, void *userdata _U_) } -void +static void register_stats_tree_tap (gpointer k _U_, gpointer v, gpointer p _U_) { stats_tree_cfg *cfg = (stats_tree_cfg *)v; diff --git a/ui/cli/tap-sv.c b/ui/cli/tap-sv.c index 81f3070b8a..739422d43a 100644 --- a/ui/cli/tap-sv.c +++ b/ui/cli/tap-sv.c @@ -34,6 +34,8 @@ #include #include +void register_tap_listener_sv(void); + static int sv_packet(void *prs _U_, packet_info *pinfo, epan_dissect_t *edt _U_, const void *pri) { diff --git a/ui/cli/tap-wspstat.c b/ui/cli/tap-wspstat.c index e11fb2bb9b..56b511a5dc 100644 --- a/ui/cli/tap-wspstat.c +++ b/ui/cli/tap-wspstat.c @@ -39,6 +39,8 @@ #include "epan/value_string.h" #include +void register_tap_listener_wspstat(void); + /* used to keep track of the stats for a specific PDU type*/ typedef struct _wsp_pdu_t { const gchar *type;