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:
parent
5c8e45281b
commit
5f31cdaf40
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user