From 1321031cabbb1f9c7ef41f94a9f897bcf564594a Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Fri, 16 Jun 2023 00:01:35 -0400 Subject: [PATCH] copysym: Fix pointer qualifier mismatch. The "const void *" in the search function can't be directly assigned to the "const char (*)[5]" variable, due to the differently-qualified pointer target types. Let's just cast off that qualifier, shall we? --- src/copysym.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/copysym.c b/src/copysym.c index 7de9e98..3d72d6a 100644 --- a/src/copysym.c +++ b/src/copysym.c @@ -22,7 +22,7 @@ static int compar_5arr(const void *key, const void *elem_) { - const char (*elem)[5] = elem_; + const char (*elem)[5] = (void *)elem_; return strncmp(key, *elem, sizeof *elem); } -- 2.43.2