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
Enrico Weigelt
parent
3b81b8a9b9
commit
450479bc5e
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user