1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-23 09:12:14 +01:00

Fix bugs found by clang

This commit is contained in:
Pavel Odintsov 2015-02-10 00:08:36 +03:00
parent 5c8e45281b
commit 5f31cdaf40
2 changed files with 2 additions and 2 deletions

@ -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;

@ -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:"<<link_layer_header_type;
exit(0);
}