diff options
author | Thomas Haller <thaller@redhat.com> | 2023-11-09 19:59:49 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2023-11-15 09:06:29 +0100 |
commit | e80e3bb88ebc9485d1b26eadee2579dbee1903ba (patch) | |
tree | 43d3c0f7d167d7910cf745c9ad4037e42a2257c2 /src/scanner.l | |
parent | 0f89958eefd5318f594a653b78b47cefec9e87e9 (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/scanner.l')
-rw-r--r-- | src/scanner.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanner.l b/src/scanner.l index 00a09485..e4d20e69 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--) { |