forked from osmocom/wireshark
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>
This commit is contained in:
parent
eac0c131c7
commit
163e4637d5
|
@ -187,9 +187,8 @@ static gint extcap_iface_listall(extcap_parameters * extcap, uint8_t list_ifs)
|
||||||
extcap_print_version(extcap);
|
extcap_print_version(extcap);
|
||||||
g_list_foreach(extcap->interfaces, extcap_iface_print, extcap);
|
g_list_foreach(extcap->interfaces, extcap_iface_print, extcap);
|
||||||
}
|
}
|
||||||
} else {
|
} else if (extcap->do_version) {
|
||||||
if (extcap->do_version) {
|
extcap_print_version(extcap);
|
||||||
extcap_print_version(extcap);
|
|
||||||
} else {
|
} else {
|
||||||
GList * element = NULL;
|
GList * element = NULL;
|
||||||
extcap_interface * iface = 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);
|
printf ("{display=%s}\n", iface->dltdescription);
|
||||||
else
|
else
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue