diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-05-22 04:49:31 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-05-22 04:49:31 +0000 |
commit | 1ca63098ac2b88e2474ead02b77191fc9cf56a08 (patch) | |
tree | d04b02a9252ce7b751118f91113e6072bfcedd46 /tshark.c | |
parent | 9f11d6cd4464060057f4c9bd29e10a948c063117 (diff) | |
download | wireshark-1ca63098ac2b88e2474ead02b77191fc9cf56a08.tar.gz |
Rename capture_opts_trim_iface() to
capture_opts_default_iface_if_necessary(), to reflect what it actually
does.
svn path=/trunk/; revision=49491
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1937,11 +1937,11 @@ main(int argc, char *argv[]) } } else { /* No capture file specified, so we're supposed to do a live capture - (or get a list of link-layer types for a live capture device); + or get a list of link-layer types for a live capture device; do we have support for live captures? */ #ifdef HAVE_LIBPCAP - /* trim the interface name and exit if that failed */ - exit_status = capture_opts_trim_iface(&global_capture_opts, + /* if no interface was specified, pick a default */ + exit_status = capture_opts_default_iface_if_necessary(&global_capture_opts, ((prefs_p->capture_device) && (*prefs_p->capture_device != '\0')) ? get_if_name(prefs_p->capture_device) : NULL); if (exit_status != 0) return exit_status; |