summaryrefslogtreecommitdiffstats
path: root/src/parser_bison.y
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-11-09 19:59:49 +0100
committerFlorian Westphal <fw@strlen.de>2023-11-15 09:06:29 +0100
commite80e3bb88ebc9485d1b26eadee2579dbee1903ba (patch)
tree43d3c0f7d167d7910cf745c9ad4037e42a2257c2 /src/parser_bison.y
parent0f89958eefd5318f594a653b78b47cefec9e87e9 (diff)
parser: use size_t type for strlen() results
strlen() has a "size_t" as result. Use the correct type. Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r--src/parser_bison.y2
1 files changed, 1 insertions, 1 deletions
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) {