Files
qemu/util
Cédric Le Goater 326e620fc0 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>
2025-12-09 21:00:15 +01:00
..
2025-11-11 22:06:09 +01:00
2023-03-20 12:43:50 +01:00
2023-12-19 19:03:38 +01:00
2025-01-16 20:57:17 -08:00
2023-05-23 15:20:15 +08:00
2024-09-20 10:00:27 +03:00
2025-10-01 08:33:24 +02:00
2024-09-13 20:11:13 +02:00
2025-03-10 17:07:16 +08:00
2025-01-29 11:43:04 -03:00
2023-04-24 11:29:00 +02:00
2024-06-21 09:47:22 -03:00
2025-10-03 09:48:02 -04:00
2025-10-03 09:48:02 -04:00
2023-08-31 19:47:43 +02:00
2022-06-29 10:56:12 +03:00
2023-03-28 15:23:10 -07:00
2023-11-15 12:06:05 +03:00
2025-10-28 12:39:59 +01:00
2024-06-19 12:42:03 +02:00
2023-04-27 16:39:43 +02:00
2023-11-03 09:20:31 +01:00