diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-03-03 13:16:52 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-03-03 15:36:23 +0000 |
commit | d2720ecca7e715e087a001a0d73366a87f2cad82 (patch) | |
tree | a18f11e86a6371fd93b6bcc74486986587a9e972 /epan/address_types.c | |
parent | a308aef89d5b262c9e04f51e2a695bee90446cb1 (diff) |
Address types: fix no previous prototype for ... [-Wmissing-prototypes]
address_types.c:230:14: warning: no previous prototype for 'ipv4_name_res_str' [-Wmissing-prototypes]
address_types.c:237:5: warning: no previous prototype for 'ipv4_name_res_len' [-Wmissing-prototypes]
address_types.c:386:14: warning: no previous prototype for 'ipv6_name_res_str' [-Wmissing-prototypes]
address_types.c:393:5: warning: no previous prototype for 'ipv6_name_res_len' [-Wmissing-prototypes]
address_types.c:509:14: warning: no previous prototype for 'fcwwn_name_res_str' [-Wmissing-prototypes]
address_types.c:538:5: warning: no previous prototype for 'fcwwn_name_res_len' [-Wmissing-prototypes]
Change-Id: I6cf44b887d9e35fb76bd1840444074c9102b4d2b
Reviewed-on: https://code.wireshark.org/review/7508
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/address_types.c')
-rw-r--r-- | epan/address_types.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/address_types.c b/epan/address_types.c index b1dfaaeea7..9f5fa5b5ec 100644 --- a/epan/address_types.c +++ b/epan/address_types.c @@ -227,14 +227,14 @@ static int ipv4_len(void) return 4; } -const gchar* ipv4_name_res_str(const address* addr) +static const gchar* ipv4_name_res_str(const address* addr) { guint32 ip4_addr; memcpy(&ip4_addr, addr->data, sizeof ip4_addr); return get_hostname(ip4_addr); } -int ipv4_name_res_len(void) +static int ipv4_name_res_len(void) { return MAX_ADDR_STR_LEN; /* XXX - This can be lower */ } @@ -383,14 +383,14 @@ static int ipv6_len(void) return 16; } -const gchar* ipv6_name_res_str(const address* addr) +static const gchar* ipv6_name_res_str(const address* addr) { struct e_in6_addr ip6_addr; memcpy(&ip6_addr.bytes, addr->data, sizeof ip6_addr.bytes); return get_hostname6(&ip6_addr); } -int ipv6_name_res_len(void) +static int ipv6_name_res_len(void) { return MAX_ADDR_STR_LEN; /* XXX - This can be lower */ } @@ -506,7 +506,7 @@ static int fcwwn_len(void) return FCWWN_ADDR_LEN; } -const gchar* fcwwn_name_res_str(const address* addr) +static const gchar* fcwwn_name_res_str(const address* addr) { const guint8 *addrp = (const guint8*)addr->data; int fmt; @@ -535,7 +535,7 @@ const gchar* fcwwn_name_res_str(const address* addr) return ""; } -int fcwwn_name_res_len(void) +static int fcwwn_name_res_len(void) { return MAX_ADDR_STR_LEN; /* XXX - This can be lower */ } |