From c8f7e16b57ed02dd5b4ccba7ec16ac37ae37beb6 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 19 Apr 2014 12:06:34 -0700 Subject: Some routine name changes. "get_addr_name()" -> "ep_address_to_display()", to 1) indicate that it returns a string with ephemeral scope and 2) indicate that it maps an address to a "displayable" form - a name if possible, an address string if not. "se_get_addr_name()" -> "get_addr_name()", to indicate that its strings have the same scope as "get_ether_name()", "get_hostname()", and "get_hostname6()". Change-Id: If2ab776395c7a4a163fef031d92b7757b5d23838 Reviewed-on: https://code.wireshark.org/review/1216 Reviewed-by: Guy Harris --- ui/gtk/graph_analysis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/gtk/graph_analysis.c') diff --git a/ui/gtk/graph_analysis.c b/ui/gtk/graph_analysis.c index 0a0184936a..609cd3c537 100644 --- a/ui/gtk/graph_analysis.c +++ b/ui/gtk/graph_analysis.c @@ -617,7 +617,7 @@ static void dialog_graph_draw(graph_analysis_data_t *user_data) for (i=0; igraph_info->num_nodes; i++) { /* print the node identifiers */ /* XXX we assign 5 pixels per character in the node identity */ - g_strlcpy(label_string, get_addr_name(&(user_data->graph_info->nodes[i])), NODE_WIDTH/5); + g_strlcpy(label_string, ep_address_to_display(&(user_data->graph_info->nodes[i])), NODE_WIDTH/5); pango_layout_set_text(layout, label_string, -1); pango_layout_get_pixel_size(layout, &label_width, &label_height); #if GTK_CHECK_VERSION(2,22,0) -- cgit v1.2.1