aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-04-25 05:47:11 +0000
committerGuy Harris <guy@alum.mit.edu>2013-04-25 05:47:11 +0000
commit39779a7bee18c7489079154d8d72350fb0d74f0b (patch)
tree3eebb55d146d2cfc2e74d85ff496afa0c6dc0327 /dumpcap.c
parent35d3fa75bed0add8fbfca7069327a3942552045c (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 'dumpcap.c')
-rw-r--r--dumpcap.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/dumpcap.c b/dumpcap.c
index d56bb92b81..e52c2660ec 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -82,7 +82,6 @@
#include "ringbuffer.h"
#include "clopts_common.h"
-#include "console_io.h"
#include "cmdarg_err.h"
#include "version_info.h"
@@ -527,26 +526,6 @@ show_version(GString *comp_info_str, GString *runtime_info_str)
}
/*
- * 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