diff options
| author | Guy Harris <guy@alum.mit.edu> | 2016-08-10 11:10:07 -0700 |
|---|---|---|
| committer | Guy Harris <guy@alum.mit.edu> | 2016-08-10 11:10:26 -0700 |
| commit | 0d1a405289e19c154d3b28d5c9e244fd13492810 (patch) | |
| tree | 31f3c0389bb469f0a648176b91e8d259099f5ef8 /tcpdump.c | |
| parent | ad1b99d59a975dbcd7330d51685617751f9cac52 (diff) | |
| download | tcpdump-0d1a405289e19c154d3b28d5c9e244fd13492810.tar.gz | |
Don't print the "listening on" message differently on Windows and UN*X.
Print it *after* we actually start listening and *after* we've possibly
converted an interface index to an interface name.
Diffstat (limited to 'tcpdump.c')
| -rw-r--r-- | tcpdump.c | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -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); |
