From: Nick Bowler Date: Fri, 16 Jun 2023 04:01:35 +0000 (-0400) Subject: copysym: Fix pointer qualifier mismatch. X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/commitdiff_plain/1321031cabbb1f9c7ef41f94a9f897bcf564594a 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? --- 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); }