summaryrefslogtreecommitdiff
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-05-22 04:49:31 +0000
committerGuy Harris <guy@alum.mit.edu>2013-05-22 04:49:31 +0000
commit1ca63098ac2b88e2474ead02b77191fc9cf56a08 (patch)
treed04b02a9252ce7b751118f91113e6072bfcedd46 /tshark.c
parent9f11d6cd4464060057f4c9bd29e10a948c063117 (diff)
downloadwireshark-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tshark.c b/tshark.c
index 2481db9817..a0c1991799 100644
--- a/tshark.c
+++ b/tshark.c
@@ -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;