diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-12-01 23:55:43 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-12-01 23:55:43 +0000 |
commit | cab22a15bd63c6007d63413c49d5ff24cd00515f (patch) | |
tree | 92b95bb5100a0daad3a74a4f58b2e51264fc89d1 | |
parent | 5102dbe323ae31399e6a4ce70f45ef9ae4c5b6f6 (diff) |
Move the #ifdef/#endif a bit so that the entire chunk of
live-capture-related-code is inside it.
svn path=/trunk/; revision=12651
-rw-r--r-- | tethereal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tethereal.c b/tethereal.c index 774f94ac97..c27c32722e 100644 --- a/tethereal.c +++ b/tethereal.c @@ -2590,18 +2590,18 @@ process_packet(capture_file *cf, wtap_dumper *pdh, long offset, /* We're writing to a capture file; write this packet. */ if (!wtap_dump(pdh, whdr, pseudo_header, pd, err)) return FALSE; +#ifdef HAVE_LIBPCAP /* Report packet capture count if not quiet */ if (!quiet && !print_packet_info) { /* Don't print a packet count if we were asked not to with "-q" or if we're also printing packet info. */ -#ifdef HAVE_LIBPCAP if (ld.packet_count != 0) { fprintf(stderr, "\r%u ", ld.packet_count); /* stderr could be line buffered */ fflush(stderr); } -#endif } +#endif } if (print_packet_info) { /* We're printing packet information; print the information for |