mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
config: Fix compiler warning
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 <ofourdan@redhat.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2152>
This commit is contained in:
committed by
Marge Bot
parent
4de13ea020
commit
74cce84aea
@@ -482,7 +482,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user