X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/ad1b99d59a975dbcd7330d51685617751f9cac52..0d1a405289e19c154d3b28d5c9e244fd13492810:/tcpdump.c diff --git a/tcpdump.c b/tcpdump.c index 97e2aa55..52dbf7e5 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -1650,22 +1650,6 @@ main(int argc, char **argv) if (device == NULL) error("%s", ebuf); } -#ifdef _WIN32 - /* - * Print a message to the standard error on Windows. - * XXX - why do it here, with a different message? - */ - if(strlen(device) == 1) /* we assume that an ASCII string is always longer than 1 char */ - { /* a Unicode string has a \0 as second byte (so strlen() is 1) */ - fprintf(stderr, "%s: listening on %ws\n", program_name, device); - } - else - { - fprintf(stderr, "%s: listening on %s\n", program_name, device); - } - - fflush(stderr); -#endif /* _WIN32 */ /* * Try to open the interface with the specified name. @@ -1956,7 +1940,6 @@ main(int argc, char **argv) #endif } -#ifndef _WIN32 if (RFileName == NULL) { /* * Live capture (if -V was specified, we set RFileName @@ -1981,7 +1964,6 @@ main(int argc, char **argv) } (void)fflush(stderr); } -#endif /* _WIN32 */ #ifdef HAVE_CAPSICUM cansandbox = (ndo->ndo_nflag && VFileName == NULL && zflag == NULL);