fix no previous prototype for ‘capture_*’ [-Wmissing-prototypes]

Change-Id: Ie5bfe4d366a679ebcb561716f23d174e7b9bf487
Reviewed-on: https://code.wireshark.org/review/18754
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Alexis La Goutte 2016-11-12 15:46:43 +01:00 committed by Michael Mann
parent 76f74ac605
commit 40b98600bd
13 changed files with 16 additions and 16 deletions

View File

@ -1363,7 +1363,7 @@ dissect_ax25arp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data
return tvb_captured_length(tvb);
}
gboolean
static gboolean
capture_arp(const guchar *pd _U_, int offset _U_, int len _U_, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_)
{
capture_dissector_increment_count(cpinfo, proto_arp);

View File

@ -251,7 +251,7 @@ dissect_ax25( tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void*
return tvb_captured_length(tvb);
}
gboolean
static gboolean
capture_ax25( const guchar *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header)
{
guint8 control;

View File

@ -113,7 +113,7 @@ const value_string chdlc_vals[] = {
{0, NULL}
};
gboolean
static gboolean
capture_chdlc( const guchar *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header) {
if (!BYTES_ARE_IN_FRAME(offset, len, 4))
return FALSE;

View File

@ -193,7 +193,7 @@ eth_build_filter(packet_info *pinfo)
#define ETHERNET_802_3 2
#define ETHERNET_SNAP 3
gboolean
static gboolean
capture_eth(const guchar *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header)
{
guint16 etype, length;

View File

@ -74,7 +74,7 @@ static dissector_handle_t wlancap_handle;
static capture_dissector_handle_t wlancap_cap_handle;
static capture_dissector_handle_t ieee80211_cap_handle;
gboolean
static gboolean
capture_wlancap(const guchar *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_)
{
guint32 length;

View File

@ -5635,7 +5635,7 @@ capture_ieee80211_common(const guchar * pd, int offset, int len,
/*
* Handle 802.11 with a variable-length link-layer header.
*/
gboolean
static gboolean
capture_ieee80211(const guchar * pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_)
{
return capture_ieee80211_common (pd, offset, len, cpinfo, pseudo_header, FALSE);
@ -5644,7 +5644,7 @@ capture_ieee80211(const guchar * pd, int offset, int len, capture_packet_info_t
/*
* Handle 802.11 with a variable-length link-layer header and data padding.
*/
gboolean
static gboolean
capture_ieee80211_datapad(const guchar * pd, int offset, int len,
capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_)
{

View File

@ -569,7 +569,7 @@ ip_defragment_cleanup(void)
reassembly_table_destroy(&ip_reassembly_table);
}
gboolean
static gboolean
capture_ip(const guchar *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_) {
if (!BYTES_ARE_IN_FRAME(offset, len, IPH_MIN_LEN))
return FALSE;

View File

@ -654,7 +654,7 @@ static const value_string routing_header_type[] = {
{ 0, NULL }
};
gboolean
static gboolean
capture_ipv6(const guchar *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header)
{
guint8 nxt;
@ -670,7 +670,7 @@ capture_ipv6(const guchar *pd, int offset, int len, capture_packet_info_t *cpinf
return try_capture_dissector("ip.proto", nxt, pd, offset, len, cpinfo, pseudo_header);
}
gboolean
static gboolean
capture_ipv6_exthdr(const guchar *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header)
{
guint8 nxt;

View File

@ -273,7 +273,7 @@ static const value_string ipxmsg_sigchar_vals[] = {
{ 0, NULL }
};
gboolean
static gboolean
capture_ipx(const guchar *pd _U_, int offset _U_, int len _U_, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_)
{
capture_dissector_increment_count(cpinfo, proto_ipx);

View File

@ -91,7 +91,7 @@ static dissector_handle_t tr_handle;
static capture_dissector_handle_t eth_cap_handle;
static capture_dissector_handle_t tr_cap_handle;
gboolean
static gboolean
capture_isl(const guchar *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_)
{
guint8 type;

View File

@ -247,7 +247,7 @@ llc_add_oui(guint32 oui, const char *table_name, const char *table_ui_name,
g_hash_table_insert(oui_info_table, GUINT_TO_POINTER(oui), new_info);
}
gboolean
static gboolean
capture_snap(const guchar *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_)
{
guint32 oui;
@ -288,7 +288,7 @@ capture_snap(const guchar *pd, int offset, int len, capture_packet_info_t *cpinf
return FALSE;
}
gboolean
static gboolean
capture_llc(const guchar *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_) {
int is_snap;

View File

@ -1977,7 +1977,7 @@ decode_fcs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *fh_tree, int fcs_decod
return next_tvb;
}
gboolean
static gboolean
capture_ppp_hdlc(const guchar *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_)
{
if (!BYTES_ARE_IN_FRAME(offset, len, 2))

View File

@ -247,7 +247,7 @@ int check_for_old_linux(const guchar * pd)
static void
add_ring_bridge_pairs(int rcf_len, tvbuff_t*, proto_tree *tree);
gboolean
static gboolean
capture_tr(const guchar *pd, int offset, int len, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header _U_) {
int source_routed = 0;