aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/rtp_player.c
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 /ui/gtk/rtp_player.c
parentcfc47c15c2b902a50764a21cbcd2ba1d78b1de7a (diff)
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/gtk/rtp_player.c')
-rw-r--r--ui/gtk/rtp_player.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/gtk/rtp_player.c b/ui/gtk/rtp_player.c
index 08d7344581..45f34c7b7c 100644
--- a/ui/gtk/rtp_player.c
+++ b/ui/gtk/rtp_player.c
@@ -506,8 +506,8 @@ decode_rtp_stream(rtp_stream_info_t *rsi, gpointer ptr)
* uses: src_ip:src_port dst_ip:dst_port call_num
*/
key_str = g_string_new("");
- src_addr = (char*)address_to_display(NULL, &(rsi->src_addr));
- dst_addr = (char*)address_to_display(NULL, &(rsi->dest_addr));
+ src_addr = address_to_display(NULL, &(rsi->src_addr));
+ dst_addr = address_to_display(NULL, &(rsi->dest_addr));
g_string_printf(key_str, "%s:%d %s:%d %d %u", src_addr,
rsi->src_port, dst_addr,
rsi->dest_port, rsi->call_num, info->current_channel);
@@ -1751,8 +1751,8 @@ add_channel_to_window(gchar *key _U_ , rtp_channel_info_t *rci, guint *counter)
label = g_string_new("");
- src_addr = (char*)address_to_display(NULL, &(rci->first_stream->src_addr));
- dst_addr = (char*)address_to_display(NULL, &(rci->first_stream->dest_addr));
+ src_addr = address_to_display(NULL, &(rci->first_stream->src_addr));
+ dst_addr = address_to_display(NULL, &(rci->first_stream->dest_addr));
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cb_use_rtp_timestamp))) {
g_string_printf(label, "From %s:%d to %s:%d Duration:%.2f Out of Seq: %d(%.1f%%) Wrong Timestamp: %d(%.1f%%)",
src_addr, rci->first_stream->src_port,