mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-01 23:28:23 +02: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:
parent
4de13ea020
commit
74cce84aea
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue