From 65a9daa7cb7d597f672dc1ede678ef28378e962f Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Tue, 26 Jan 2021 11:09:01 +0100 Subject: [PATCH] Warning fix --- src/MySQLDB.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MySQLDB.cpp b/src/MySQLDB.cpp index 4581da5f44..9f15fee268 100644 --- a/src/MySQLDB.cpp +++ b/src/MySQLDB.cpp @@ -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 : "",