Files
Cédric Le Goater ae2224c4d7 Fix const qualifier build errors with recent glibc
A recent change in glibc 2.42.9000 [1] changes the return type of
strstr() and other string functions to be 'const char *' when the
input is a 'const char *'.

This breaks the build in various files with errors such as :

  error: initialization discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
    208 |         char *pidstr = strstr(filename, "%");
        |                        ^~~~~~

Fix this by changing the type of the variables that store the result
of these functions to 'const char *'.

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=cd748a63ab1a7ae846175c532a3daab341c62690

Signed-off-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20251209174328.698774-1-clg@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
(cherry picked from commit 326e620fc0)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2026-01-07 16:31:43 +03:00
..
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2025-03-06 14:21:25 +01:00
2025-11-21 16:01:47 +03:00
2023-11-08 17:56:18 +01:00
2025-03-13 17:44:55 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2026-01-07 16:31:43 +03:00
2023-11-08 17:56:18 +01:00
2024-12-20 17:44:56 +01:00
2023-11-08 17:56:18 +01:00