Skip to content

Commit 8bc70e9

Browse files
committed
TEST needs formatting
1 parent 4744236 commit 8bc70e9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/source-pcap.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#include "source-pcap.h"
3535
#include "conf.h"
3636
#include "util-debug.h"
37+
38+
3739
#include "util-error.h"
3840
#include "util-privs.h"
3941
#include "util-device.h"
@@ -67,9 +69,7 @@ typedef struct PcapThreadVars_
6769
int datalink;
6870

6971
/* counters */
70-
uint32_t pkts;
71-
uint64_t bytes;
72-
uint32_t errs;
72+
uint32_t pkts; uint64_t bytes; uint32_t errs;
7373

7474
uint16_t capture_kernel_packets;
7575
uint16_t capture_kernel_drops;
@@ -145,9 +145,7 @@ static int PcapTryReopen(PcapThreadVars *ptv)
145145
ptv->pcap_state = PCAP_STATE_DOWN;
146146

147147
int pcap_activate_r = pcap_activate(ptv->pcap_handle);
148-
if (pcap_activate_r != 0) {
149-
return pcap_activate_r;
150-
}
148+
if (pcap_activate_r != 0) { return pcap_activate_r; }
151149

152150
/* set bpf filter if we have one */
153151
if (ptv->bpf_filter != NULL) {

0 commit comments

Comments
 (0)