From 8c78ec34b06265fc04e647129b24e244bcc83aa8 Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Fri, 19 Jul 2024 15:44:13 +0200 Subject: [PATCH] platsch: use unsigned int for loop The ARRAY_SIZE macro returns an unsigned integer, use an unsigned int for the loop to avoid a sign compare warning. Signed-off-by: Rouven Czerwinski --- platsch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platsch.c b/platsch.c index 5837f73..1d68735 100644 --- a/platsch.c +++ b/platsch.c @@ -348,7 +348,7 @@ static char *get_normalized_conn_type_name(uint32_t connector_type) static const struct platsch_format *platsch_format_find(const char *name) { - int i; + unsigned i; for (i = 0; i < ARRAY_SIZE(platsch_formats); i++) if (!strcmp(platsch_formats[i].name, name))