diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-04-25 05:47:11 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-04-25 05:47:11 +0000 |
commit | 39779a7bee18c7489079154d8d72350fb0d74f0b (patch) | |
tree | 3eebb55d146d2cfc2e74d85ff496afa0c6dc0327 /tshark.c | |
parent | 35d3fa75bed0add8fbfca7069327a3942552045c (diff) |
Send the output of the -D and -L options to the standard output rather
than the standard error.
In Wireshark on Windows, create a console before doing so and destroy it
before exiting. Don't do that in TShark or dumpcap, as those are
console-mode programs on Windows.
This should fix bug 8609 and still allow "wireshark -D" and "wireshark
-L" to work when the standard output isn't redirected.
svn path=/trunk/; revision=49025
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -71,7 +71,6 @@ #include <epan/addr_resolv.h> #include "ui/util.h" #include "clopts_common.h" -#include "console_io.h" #include "cmdarg_err.h" #include "version_info.h" #include <epan/plugins.h> @@ -3977,26 +3976,6 @@ write_failure_message(const char *filename, int err) } /* - * Print to the standard error. This is a command-line tool, so there's - * no need to pop up a console. - */ -void -vfprintf_stderr(const char *fmt, va_list ap) -{ - vfprintf(stderr, fmt, ap); -} - -void -fprintf_stderr(const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - vfprintf_stderr(fmt, ap); - va_end(ap); -} - -/* * Report an error in command-line arguments. */ void |