From 450479bc5ea32f14cf132094d04b9f060c8f36a6 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Tue, 24 Mar 2026 16:51:48 +0100 Subject: [PATCH] config: Fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compiler complains that: | config/udev.c: In function ‘strrstr’: | config/udev.c:485:10: warning: assignment discards ‘const’ qualifier | from pointer target type [-Wdiscarded-qualifiers] | 485 | prev = strstr(haystack, needle); | | ^ Signed-off-by: Olivier Fourdan Part-of: --- config/udev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/udev.c b/config/udev.c index 144b905e5..39067e336 100644 --- a/config/udev.c +++ b/config/udev.c @@ -483,7 +483,7 @@ static char *strrstr(const char *haystack, const char *needle) { char *prev, *last, *tmp; - prev = strstr(haystack, needle); + prev = (char *) strstr(haystack, needle); if (!prev) return NULL;