summaryrefslogtreecommitdiff
path: root/netsniff-ng.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-04-30 11:53:08 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-04-30 11:53:08 +0200
commit0ce9ef48153cf719c56894593bfb634cd4046647 (patch)
treea00ee2b7afdeee70f27186aea34bdc5bec033747 /netsniff-ng.c
parente7c6de80086ee33a20176669a70050c036db0d2f (diff)
netsniff-ng: Fix whitespaces
Remove some leading/trailing whitespaces. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'netsniff-ng.c')
-rw-r--r--netsniff-ng.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c
index 8cbe484..ab3d53f 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -250,7 +250,7 @@ static void pcap_to_xmit(struct ctx *ctx)
interval = ctx->kpull;
set_itimer_interval_value(&itimer, 0, interval);
- setitimer(ITIMER_REAL, &itimer, NULL);
+ setitimer(ITIMER_REAL, &itimer, NULL);
drop_privileges(ctx->enforce, ctx->uid, ctx->gid);
@@ -393,7 +393,7 @@ static void receive_to_xmit(struct ctx *ctx)
dissector_init_all(ctx->print_mode);
- if (ctx->promiscuous)
+ if (ctx->promiscuous)
ifflags = device_enter_promiscuous_mode(ctx->device_in);
if (ctx->kpull)
@@ -802,7 +802,7 @@ static void print_pcap_file_stats(int sock, struct ctx *ctx)
ret = getsockopt(sock, SOL_PACKET, PACKET_STATISTICS, &kstats, &slen);
if (unlikely(ret))
panic("Cannot get packet statistics!\n");
-
+
if (ctx->print_mode == PRINT_NONE) {
printf(".(+%u/-%u)", kstats.tp_packets - kstats.tp_drops,
kstats.tp_drops);