diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2016-02-10 19:07:29 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2016-02-11 19:21:08 +0000 |
commit | 15862fd3266b38bb3cbb5deba639f0c2bf64671e (patch) | |
tree | c5c5fccb988c519f7f010026b3b804f423ce2a63 /epan/addr_resolv.h | |
parent | 35919a01caf4a84c204eec0c18720b6efc07bb6d (diff) |
Change some constness qualifications
Change-Id: I0ece488f43aae27e7c055c2edacbf09ff11ce16d
Reviewed-on: https://code.wireshark.org/review/13889
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'epan/addr_resolv.h')
-rw-r--r-- | epan/addr_resolv.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/addr_resolv.h b/epan/addr_resolv.h index a316c18fb6..f5ee82901d 100644 --- a/epan/addr_resolv.h +++ b/epan/addr_resolv.h @@ -181,15 +181,15 @@ WS_DLL_PUBLIC gboolean host_name_lookup_process(void); WS_DLL_PUBLIC const gchar *get_hostname(const guint addr); /* get_hostname6 returns the host name, or numeric addr if not found */ -WS_DLL_PUBLIC const gchar* get_hostname6(const struct e_in6_addr *ad); +WS_DLL_PUBLIC const gchar *get_hostname6(const struct e_in6_addr *ad); /* get_ether_name returns the logical name if found in ethers files else "<vendor>_%02x:%02x:%02x" if the vendor code is known else "%02x:%02x:%02x:%02x:%02x:%02x" */ -WS_DLL_PUBLIC gchar *get_ether_name(const guint8 *addr); +WS_DLL_PUBLIC const gchar *get_ether_name(const guint8 *addr); /* Same as get_ether_name with tvb support */ -WS_DLL_PUBLIC gchar *tvb_get_ether_name(tvbuff_t *tvb, gint offset); +WS_DLL_PUBLIC const gchar *tvb_get_ether_name(tvbuff_t *tvb, gint offset); /* get_ether_name returns the logical name if found in ethers files else NULL */ const gchar *get_ether_name_if_known(const guint8 *addr); @@ -234,7 +234,7 @@ WS_DLL_PUBLIC const gchar *tvb_get_manuf_name_if_known(tvbuff_t *tvb, gint offse /* eui64_to_display returns "<vendor>_%02x:%02x:%02x:%02x:%02x:%02x" if the vendor code is known "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x" */ -extern const gchar *eui64_to_display(wmem_allocator_t *allocator, const guint64 addr); +extern gchar *eui64_to_display(wmem_allocator_t *allocator, const guint64 addr); /* get_ipxnet_name returns the logical name if found in an ipxnets file, * or a string formatted with "%X" if not */ |