]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tcpdump.c
Don't print the "listening on" message differently on Windows and UN*X.
[tcpdump] / tcpdump.c
index 97e2aa55ca9f453a23725ba5bceb1a11d848ef9e..52dbf7e53c568e593e75df417f8444a9ed1a3901 100644 (file)
--- 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);