diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2015-11-27 23:04:16 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-29 00:25:11 +0000 |
commit | 5e6d45ca98bb8c368b73084785d90fa3b0b6291f (patch) | |
tree | 7e541c16d0e31ef60e35d2be7ba27f8a477523cc /ui/tap-sequence-analysis.c | |
parent | cfc47c15c2b902a50764a21cbcd2ba1d78b1de7a (diff) | |
download | wireshark-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 'ui/tap-sequence-analysis.c')
-rw-r--r-- | ui/tap-sequence-analysis.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; i<display_nodes; i+=2) { /* print the node identifiers */ - addr_str = (char*)address_to_display(NULL, &(sainfo->nodes[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; i<display_nodes; i+=2) { /* print the node identifiers */ - addr_str = (char*)address_to_display(NULL, &(sainfo->nodes[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) |