diff options
author | tuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-05 21:11:24 +0000 |
---|---|---|
committer | tuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-05 21:11:24 +0000 |
commit | 9df6ef923927eed3ab8dc0efa8272cda6d2829e2 (patch) | |
tree | 9a3bbf193c13350aa53474a34b4e8c85c9e335ad | |
parent | 80e33aa3ada1e131c65f6b9b31bb6db57128de62 (diff) |
(Try to) fix compilation when no libpcap is available.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37905 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | gtk/summary_dlg.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk/summary_dlg.c b/gtk/summary_dlg.c index c57936c49a..cd0ccfdde3 100644 --- a/gtk/summary_dlg.c +++ b/gtk/summary_dlg.c @@ -229,7 +229,7 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_) /* Capture */ add_string_to_table(table, &row, "", ""); - add_string_to_table_sensitive(table, &row, "Capture", "", (global_capture_opts.ifaces->len>0)); + add_string_to_table_sensitive(table, &row, "Capture", "", (summary.ifaces->len > 0)); scrolled_window = gtk_scrolled_window_new (NULL, NULL); gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 5); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window), @@ -275,14 +275,17 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_) if (iface.cfilter && iface.cfilter[0] != '\0') { g_snprintf(string_buff3, SUM_STR_MAX, "%s", iface.cfilter); } else { - if(iface.name) { + if (iface.name) { g_snprintf(string_buff3, SUM_STR_MAX, "none"); } else { g_snprintf(string_buff3, SUM_STR_MAX, "unknown"); } } -#endif g_snprintf(string_buff4, SUM_STR_MAX, "%s", pcap_datalink_val_to_description(iface.linktype)); +#else + strcpy(string_buff3, "unknown") + strcpy(string_buff4, "unknown") +#endif if (strcmp(string_buff4, "(null)") == 0) { strcpy(string_buff4, "unknown"); } |