From 4d61294036300530733afa156d5d5ffc24f1b3d6 Mon Sep 17 00:00:00 2001 From: Sultan Alsawaf Date: Fri, 9 Jul 2021 21:35:30 -0700 Subject: [PATCH] lib/nlattr.c: Fix warning due to incorrect strlen() variable type strlen() returns a size_t, not an int. Signed-off-by: Sultan Alsawaf Change-Id: If5b0e3eb9d237f88ae96301ca4736c08ffe139cc --- lib/nlattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nlattr.c b/lib/nlattr.c index 3d8295c85505..2e9774596172 100755 --- a/lib/nlattr.c +++ b/lib/nlattr.c @@ -374,7 +374,7 @@ EXPORT_SYMBOL(nla_memcmp); */ int nla_strcmp(const struct nlattr *nla, const char *str) { - int len = strlen(str); + size_t len = strlen(str); char *buf = nla_data(nla); int attrlen = nla_len(nla); int d;