From: Carter Waxman Date: Thu, 21 Apr 2016 16:18:46 +0000 (-0400) Subject: fixed compiler warning X-Git-Tag: 3.0.0-233~431^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7be3480c5ccf45f017e0529fb6c978e72c9a7e7;p=thirdparty%2Fsnort3.git fixed compiler warning --- diff --git a/src/network_inspectors/packet_capture/capture_module.cc b/src/network_inspectors/packet_capture/capture_module.cc index 6e40fe123..66f0d5bc7 100644 --- a/src/network_inspectors/packet_capture/capture_module.cc +++ b/src/network_inspectors/packet_capture/capture_module.cc @@ -38,7 +38,7 @@ CaptureModule::CaptureModule() : ProfileStats* CaptureModule::get_profile() const { return &cap_prof_stats; } -bool CaptureModule::set(const char*, Value& v, SnortConfig*) +bool CaptureModule::set(const char*, Value&, SnortConfig*) { return true; } diff --git a/src/network_inspectors/packet_capture/packet_capture.cc b/src/network_inspectors/packet_capture/packet_capture.cc index 598318350..34368bed2 100644 --- a/src/network_inspectors/packet_capture/packet_capture.cc +++ b/src/network_inspectors/packet_capture/packet_capture.cc @@ -171,6 +171,7 @@ void PacketCapture::write_packet(Packet* p) pkth.len = p->pkth->pktlen; pkth.ts = p->pkth->ts; pcap_dump((unsigned char*)dumper, &pkth, p->pkt); + pcap_dump_flush(dumper); } //-------------------------------------------------------------------------