aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/wlan_stat_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-04-19 12:06:34 -0700
committerGuy Harris <guy@alum.mit.edu>2014-04-19 19:07:06 +0000
commitc8f7e16b57ed02dd5b4ccba7ec16ac37ae37beb6 (patch)
treeb9f7a5e0451550684ebbf089fefe1b685bbe68e4 /ui/gtk/wlan_stat_dlg.c
parentc03f13bda8be7db381eb52a090af5871706dfb20 (diff)
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 <guy@alum.mit.edu>
Diffstat (limited to 'ui/gtk/wlan_stat_dlg.c')
-rw-r--r--ui/gtk/wlan_stat_dlg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/gtk/wlan_stat_dlg.c b/ui/gtk/wlan_stat_dlg.c
index 54f6ce28a1..7f0d4f0438 100644
--- a/ui/gtk/wlan_stat_dlg.c
+++ b/ui/gtk/wlan_stat_dlg.c
@@ -361,7 +361,7 @@ is_broadcast(const address *addr)
{
#if 0
/* doesn't work if MAC resolution is disable */
- return strcmp(get_addr_name(addr), "Broadcast") == 0;
+ return strcmp(ep_address_to_display(addr), "Broadcast") == 0;
#endif
return ADDRESSES_EQUAL(&broadcast, addr);
}
@@ -502,7 +502,7 @@ wlanstat_draw_details(wlanstat_t *hs, wlan_ep_t *wlan_ep, gboolean clear)
}
if (hs->resolve_names) {
- g_strlcpy (addr, get_addr_name(&tmp->addr), sizeof(addr));
+ g_strlcpy (addr, ep_address_to_display(&tmp->addr), sizeof(addr));
} else {
g_strlcpy (addr, ep_address_to_str(&tmp->addr), sizeof(addr));
}
@@ -569,7 +569,7 @@ wlanstat_draw(void *phs)
f = (float)(((float)tmp->number_of_packets * 100.0) / hs->number_of_packets);
if (hs->resolve_names) {
- g_strlcpy (bssid, get_addr_name(&tmp->bssid), sizeof(bssid));
+ g_strlcpy (bssid, ep_address_to_display(&tmp->bssid), sizeof(bssid));
} else {
g_strlcpy (bssid, ep_address_to_str(&tmp->bssid), sizeof(bssid));
}