summaryrefslogtreecommitdiff
path: root/epan/to_str.h
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2015-11-27 23:04:16 +0000
committerMichael Mann <mmann78@netscape.net>2015-11-29 00:25:11 +0000
commit5e6d45ca98bb8c368b73084785d90fa3b0b6291f (patch)
tree7e541c16d0e31ef60e35d2be7ba27f8a477523cc /epan/to_str.h
parentcfc47c15c2b902a50764a21cbcd2ba1d78b1de7a (diff)
downloadwireshark-5e6d45ca98bb8c368b73084785d90fa3b0b6291f.tar.gz
Make address_to_display() use proper (non-)constness
Don't return allocated memory as a const pointer. Fixes multiple [-Wcast-qual] warnings. Change-Id: Ie9ceac27fa2a5eba41a5392ac983ff28c3939239 Reviewed-on: https://code.wireshark.org/review/12267 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/to_str.h')
-rw-r--r--epan/to_str.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/to_str.h b/epan/to_str.h
index 7475b0c672..d6ecde434c 100644
--- a/epan/to_str.h
+++ b/epan/to_str.h
@@ -80,7 +80,7 @@ const gchar *address_to_name(const address *addr);
* e.g. "10.10.10.10" for IPv4 address 10.10.10.10.
*/
WS_DLL_PUBLIC
-const gchar *address_to_display(wmem_allocator_t *allocator, const address *addr);
+gchar *address_to_display(wmem_allocator_t *allocator, const address *addr);
WS_DLL_PUBLIC void address_to_str_buf(const address *addr, gchar *buf, int buf_len);