From 1ca63098ac2b88e2474ead02b77191fc9cf56a08 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 22 May 2013 04:49:31 +0000 Subject: Rename capture_opts_trim_iface() to capture_opts_default_iface_if_necessary(), to reflect what it actually does. svn path=/trunk/; revision=49491 --- tshark.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tshark.c') 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; -- cgit v1.2.1