aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2011-05-16 00:19:47 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2011-05-16 00:19:47 +0000
commit9a2ba01e85edeb36355c27d7e5ee732c9d4cf16e (patch)
tree30793fa868662e7aff4fdcc38a257a7bb0912368 /dumpcap.c
parent2d2815b5d197d3e1bdc072de078b6db24e6420c2 (diff)
Don't use debug output.
BTW: Why does compilation fail with it being enabled? svn path=/trunk/; revision=37173
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 004e3d3715..04c8838709 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -120,8 +120,8 @@
*/
#include "wiretap/libpcap.h"
-#define DEBUG_DUMPCAP
-#define DEBUG_CHILD_DUMPCAP
+/**#define DEBUG_DUMPCAP**/
+/**#define DEBUG_CHILD_DUMPCAP**/
#ifdef DEBUG_CHILD_DUMPCAP
FILE *debug_log; /* for logging debug messages to */
@@ -3392,6 +3392,7 @@ capture_loop_packet_cb(u_char *user, const struct pcap_pkthdr *phdr,
if (ld->pdh) {
gboolean successful;
+
/* We're supposed to write the packet to a file; do so.
If this fails, set "ld->go" to FALSE, to stop the capture, and set
"ld->err" to the error. */
@@ -3406,8 +3407,7 @@ capture_loop_packet_cb(u_char *user, const struct pcap_pkthdr *phdr,
} else {
ld->packet_count++;
/* if the user told us to stop after x packets, do we already have enough? */
- if ((ld->packet_max > 0) && (ld->packet_count >= ld->packet_max))
- {
+ if ((ld->packet_max > 0) && (ld->packet_count >= ld->packet_max)) {
ld->go = FALSE;
}
}