aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/capture_interfaces_dialog.cpp
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/qt/capture_interfaces_dialog.cpp
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/qt/capture_interfaces_dialog.cpp')
-rw-r--r--ui/qt/capture_interfaces_dialog.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/qt/capture_interfaces_dialog.cpp b/ui/qt/capture_interfaces_dialog.cpp
index 80a807458b..a51f7c5357 100644
--- a/ui/qt/capture_interfaces_dialog.cpp
+++ b/ui/qt/capture_interfaces_dialog.cpp
@@ -498,8 +498,7 @@ void CaptureInterfacesDialog::updateInterfaces()
}
}
- pmode = capture_dev_user_pmode_find(device->name);
- if (pmode != -1) {
+ if (capture_dev_user_pmode_find(device->name, &pmode)) {
device->pmode = pmode;
}
if (capture_dev_user_snaplen_find(device->name, &hassnap, &snaplen)) {