From 5e6d45ca98bb8c368b73084785d90fa3b0b6291f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Fri, 27 Nov 2015 23:04:16 +0000 Subject: 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 Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- ui/tap-sequence-analysis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/tap-sequence-analysis.c') diff --git a/ui/tap-sequence-analysis.c b/ui/tap-sequence-analysis.c index 9ea84ee3dd..d9538bb180 100644 --- a/ui/tap-sequence-analysis.c +++ b/ui/tap-sequence-analysis.c @@ -553,7 +553,7 @@ sequence_analysis_dump_to_file(const char *pathname, seq_analysis_info_t *sainfo /* Write the node names on top */ for (i=0; inodes[i+first_node])); + addr_str = address_to_display(NULL, &(sainfo->nodes[i+first_node])); g_string_printf(label_string, "| %s", addr_str); wmem_free(NULL, addr_str); enlarge_string(label_string, NODE_CHARS_WIDTH*2, ' '); @@ -571,7 +571,7 @@ sequence_analysis_dump_to_file(const char *pathname, seq_analysis_info_t *sainfo /* Write the node names on top */ for (i=1; inodes[i+first_node])); + addr_str = address_to_display(NULL, &(sainfo->nodes[i+first_node])); g_string_printf(label_string, "| %s", addr_str); wmem_free(NULL, addr_str); if (label_string->len < NODE_CHARS_WIDTH) -- cgit v1.2.1