aboutsummaryrefslogtreecommitdiffstats
path: root/ui/iface_lists.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-04-04 14:01:56 -0700
committerGuy Harris <guy@alum.mit.edu>2015-04-04 21:03:34 +0000
commitc67bc0335566113fc325830660f5571d2e6ad0f6 (patch)
treee134ceb3cb71ada1a3aecbd7b09cf5c954d639a0 /ui/iface_lists.c
parent666f9bcfda5959172fd941a4cec333db75217ecf (diff)
Let capture_dev_user_pmode_find() say "not found".
"Not found" is different from "found, and false". Have it return a boolean "did I find the property" indication and, if it did, supply the property value through a pointer. Change-Id: Iaa942ea346410b35e512ff1a3821cbf60c88dfd6 Reviewed-on: https://code.wireshark.org/review/7916 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/iface_lists.c')
-rw-r--r--ui/iface_lists.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/iface_lists.c b/ui/iface_lists.c
index a78eb4c186..2756805a93 100644
--- a/ui/iface_lists.c
+++ b/ui/iface_lists.c
@@ -276,7 +276,7 @@ scan_local_interfaces(void (*update_cb)(void))
device.local = TRUE;
device.if_info = *temp;
device.last_packets = 0;
- if ((device.pmode = capture_dev_user_pmode_find(if_info->name)) == -1) {
+ if (!capture_dev_user_pmode_find(if_info->name, &device.pmode)) {
device.pmode = global_capture_opts.default_options.promisc_mode;
}
if (!capture_dev_user_snaplen_find(if_info->name, &device.has_snaplen,