From 5f31cdaf407e0d95745f54581718b9c9a3be4ee5 Mon Sep 17 00:00:00 2001 From: Pavel Odintsov Date: Tue, 10 Feb 2015 00:08:36 +0300 Subject: [PATCH] Fix bugs found by clang --- netflow_plugin/netflow_collector.cpp | 2 +- pcap_plugin/pcap_collector.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netflow_plugin/netflow_collector.cpp b/netflow_plugin/netflow_collector.cpp index b19c74a..07a2a9f 100644 --- a/netflow_plugin/netflow_collector.cpp +++ b/netflow_plugin/netflow_collector.cpp @@ -167,7 +167,7 @@ int nf9_rec_to_flow(u_int record_type, u_int record_length, u_int8_t *data, simp return 0; } -int nf9_flowset_to_store(u_int8_t *pkt, size_t len, struct NF9_HEADER *nf9_hdr, netflow9_template_records_map& template_records) { +void nf9_flowset_to_store(u_int8_t *pkt, size_t len, struct NF9_HEADER *nf9_hdr, netflow9_template_records_map& template_records) { //if (template->total_len > len) // return 1; diff --git a/pcap_plugin/pcap_collector.cpp b/pcap_plugin/pcap_collector.cpp index b834b55..284e1f9 100644 --- a/pcap_plugin/pcap_collector.cpp +++ b/pcap_plugin/pcap_collector.cpp @@ -215,7 +215,7 @@ void pcap_main_loop(const char* dev) { } else if (link_layer_header_type == DLT_LINUX_SLL) { DATA_SHIFT_VALUE = 16; } else { - logger<< log4cpp::Priority::INFO<<"We did not support link type:", link_layer_header_type; + logger<< log4cpp::Priority::INFO<<"We did not support link type:"<