From e80e3bb88ebc9485d1b26eadee2579dbee1903ba Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 9 Nov 2023 19:59:49 +0100 Subject: parser: use size_t type for strlen() results strlen() has a "size_t" as result. Use the correct type. Signed-off-by: Thomas Haller Signed-off-by: Florian Westphal --- src/parser_bison.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser_bison.y') diff --git a/src/parser_bison.y b/src/parser_bison.y index 1e8169c4..ee7e9e14 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, const char *name) { - unsigned int length = strlen(name); + size_t length = strlen(name); struct expr *expr; if (length == 0) { -- cgit v1.2.3