aboutsummaryrefslogtreecommitdiffstats
path: root/extcap/extcap-base.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2018-11-07 10:03:57 +0100
committerAnders Broman <a.broman58@gmail.com>2018-11-07 09:57:00 +0000
commit163e4637d50a7cda210de3af1e5de1eaed4cf727 (patch)
tree0d3310a1c4710d787e380bcf6d9892f288b831d7 /extcap/extcap-base.c
parenteac0c131c75f83244e4cb8a36a898356aab00fe2 (diff)
extcap: Cleanup an if-statement
Change-Id: If56f3837e8bcf0ef3a11579ca031223909ac47b9 Reviewed-on: https://code.wireshark.org/review/30528 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'extcap/extcap-base.c')
-rw-r--r--extcap/extcap-base.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/extcap/extcap-base.c b/extcap/extcap-base.c
index 2e8f7cd9dd..1ea4397181 100644
--- a/extcap/extcap-base.c
+++ b/extcap/extcap-base.c
@@ -187,9 +187,8 @@ static gint extcap_iface_listall(extcap_parameters * extcap, uint8_t list_ifs)
extcap_print_version(extcap);
g_list_foreach(extcap->interfaces, extcap_iface_print, extcap);
}
- } else {
- if (extcap->do_version) {
- extcap_print_version(extcap);
+ } else if (extcap->do_version) {
+ extcap_print_version(extcap);
} else {
GList * element = NULL;
extcap_interface * iface = NULL;
@@ -202,7 +201,6 @@ static gint extcap_iface_listall(extcap_parameters * extcap, uint8_t list_ifs)
printf ("{display=%s}\n", iface->dltdescription);
else
printf ("\n");
- }
}
return 1;