strlen() has a "size_t" as result. Use the correct type. Signed-off-by: Thomas Haller <thaller@xxxxxxxxxx> --- src/parser_bison.y | 2 +- src/scanner.l | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser_bison.y b/src/parser_bison.y index ca0851c915d2..12031c831353 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -150,7 +150,7 @@ static struct expr *ifname_expr_alloc(const struct location *location, struct list_head *queue, char *name) { - unsigned int length = strlen(name); + size_t length = strlen(name); struct expr *expr; if (length == 0) { diff --git a/src/scanner.l b/src/scanner.l index 31284d7358fa..aba8ef1c6b54 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -1117,7 +1117,7 @@ static int include_glob(struct nft_ctx *nft, void *scanner, const char *pattern, ret = glob(pattern, flags, NULL, &glob_data); if (ret == 0) { char *path; - int len; + size_t len; /* reverse alphabetical order due to stack */ for (i = glob_data.gl_pathc; i > 0; i--) { -- 2.41.0