aboutsummaryrefslogtreecommitdiffstats
path: root/summary.c
diff options
context:
space:
mode:
Diffstat (limited to 'summary.c')
-rw-r--r--summary.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/summary.c b/summary.c
index ee0cbb3e2f..0fd6b8d6ba 100644
--- a/summary.c
+++ b/summary.c
@@ -203,7 +203,7 @@ void
summary_fill_in_capture(capture_file *cf,capture_options *capture_opts, summary_tally *st)
{
iface_options iface;
- interface_t device;
+ interface_t *device;
guint i;
if (st->ifaces->len == 0) {
@@ -211,17 +211,17 @@ summary_fill_in_capture(capture_file *cf,capture_options *capture_opts, summary_
* XXX - do this only if we have a live capture.
*/
for (i = 0; i < capture_opts->all_ifaces->len; i++) {
- device = g_array_index(capture_opts->all_ifaces, interface_t, i);
- if (!device.selected) {
+ device = &g_array_index(capture_opts->all_ifaces, interface_t, i);
+ if (!device->selected) {
continue;
}
- iface.cfilter = g_strdup(device.cfilter);
- iface.name = g_strdup(device.name);
- iface.descr = g_strdup(device.display_name);
+ iface.cfilter = g_strdup(device->cfilter);
+ iface.name = g_strdup(device->name);
+ iface.descr = g_strdup(device->display_name);
iface.drops_known = cf->drops_known;
iface.drops = cf->drops;
- iface.snap = device.snaplen;
- iface.encap_type = wtap_pcap_encap_to_wtap_encap(device.active_dlt);
+ iface.snap = device->snaplen;
+ iface.encap_type = wtap_pcap_encap_to_wtap_encap(device->active_dlt);
g_array_append_val(st->ifaces, iface);
}
}