Warning fix

This commit is contained in:
Luca Deri 2021-01-26 11:09:01 +01:00
parent 3695b75673
commit 65a9daa7cb

View file

@ -627,7 +627,7 @@ int MySQLDB::flow2InsertValues(Flow *f, char *json,
htonl(f->get_srv_ip_addr()->get_ipv4()),
f->get_srv_port(),
f->get_protocol(),
bytes_cli2srv, bytes_srv2cli,
(uintmax_t)bytes_cli2srv, (uintmax_t)bytes_srv2cli,
packets, first_seen, last_seen,
info_buf ? info_buf : "",
json_buf ? json_buf : "",
@ -647,7 +647,7 @@ int MySQLDB::flow2InsertValues(Flow *f, char *json,
f->get_srv_ip_addr()->print(srv_str, sizeof(srv_str)),
f->get_srv_port(),
f->get_protocol(),
bytes_cli2srv, bytes_srv2cli,
(uintmax_t)bytes_cli2srv, (uintmax_t)bytes_srv2cli,
packets, first_seen, last_seen,
info_buf ? info_buf : "",
json_buf ? json_buf : "",