Move the #ifdef/#endif a bit so that the entire chunk of
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 1 Dec 2004 23:55:43 +0000 (23:55 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 1 Dec 2004 23:55:43 +0000 (23:55 +0000)
live-capture-related-code is inside it.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12651 f5534014-38df-0310-8fa8-9805f1628bb7

tethereal.c

index 774f94ac97c8ee86ed2d4bf8ed8ea6755ec93e59..c27c32722e8779f011e8699d90ce95d8e0c36aca 100644 (file)
@@ -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