X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmysql.c;h=7399fe21def999a275584f18501d634898a02a4b;hb=6378ec288f34ff250b2971a1452338a2b34c240a;hp=40707be364f8e0818decb3fbff5ad527a8f55a85;hpb=b9b5e5d573d0011c4f3276e9b84b73ba4dd2e870;p=collectd.git diff --git a/src/mysql.c b/src/mysql.c index 40707be3..7399fe21 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -29,8 +29,8 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #ifdef HAVE_MYSQL_H #include @@ -363,7 +363,7 @@ static void traffic_submit(derive_t rx, derive_t tx, mysql_database_t *db) { static MYSQL_RES *exec_query(MYSQL *con, const char *query) { MYSQL_RES *res; - int query_len = strlen(query); + size_t query_len = strlen(query); if (mysql_real_query(con, query, query_len)) { ERROR("mysql plugin: Failed to execute query: %s", mysql_error(con));