summaryrefslogtreecommitdiff
path: root/ui/gtk/capture_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-02-20 18:31:15 -0800
committerGuy Harris <guy@alum.mit.edu>2017-02-21 02:31:27 +0000
commit72e2c3acfac3f56d1b6276d6cbbf55695da849b4 (patch)
treed66964785c1479502cfea3cb2d0be73ee202c456 /ui/gtk/capture_dlg.c
parente18ad46ad06cbde22a4319a1a73f73be76051171 (diff)
downloadwireshark-72e2c3acfac3f56d1b6276d6cbbf55695da849b4.tar.gz
Have a routine to iterate over the remote host list.
Have a routine that iterates over the remote host list if it exists. Remove the routine to get the remote host list; all accesses should be through functions in ui/remote.c. Change-Id: Idddceba76b50ce85ef8557e132d7552191c2fddc Reviewed-on: https://code.wireshark.org/review/20217 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/gtk/capture_dlg.c')
-rw-r--r--ui/gtk/capture_dlg.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/gtk/capture_dlg.c b/ui/gtk/capture_dlg.c
index 41c4313fe9..efc0bccbd8 100644
--- a/ui/gtk/capture_dlg.c
+++ b/ui/gtk/capture_dlg.c
@@ -1162,10 +1162,9 @@ iftype_combo_box_new(void)
iftype_cbx = gtk_combo_box_text_new_with_entry();
- ht = get_remote_host_list();
- if (g_hash_table_size (ht) > 0) {
+ if (recent_get_remote_host_list_size() > 0) {
/* Add remote hosts */
- g_hash_table_foreach (ht, iftype_combo_box_add_remote_host, iftype_cbx);
+ remote_host_list_foreach (iftype_combo_box_add_remote_host, iftype_cbx);
iftype_combo_box_add_remote_separators (iftype_cbx);
}