You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/qga
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>
2 weeks ago
..
installer qga/installer: Remove QGA VSS if QGA installation failed 4 months ago
vss-win32 qga-vss: Write hex value of error in log 4 months ago
channel-posix.c util: drop qemu_socket_set_nonblock() 3 months ago
channel-win32.c qga: Add spaces around operator 5 years ago
channel.h qga: add systemd socket activation support 9 years ago
commands-bsd.c error: Drop superfluous #include "qapi/qmp/qerror.h" 1 year ago
commands-common-ssh.c qga: Refactor common SSH functions 2 years ago
commands-common-ssh.h qga: Refactor common SSH functions 2 years ago
commands-common.h qga: move CONFIG_FSFREEZE/TRIM to be meson defined options 1 year ago
commands-linux.c Fix const qualifier build errors with recent glibc 2 weeks ago
commands-posix-ssh.c Remove glib compatibility code that is not required anymore 2 years ago
commands-posix.c qga: use access(2) to check for command existance instead of questionable stat(2) 1 month ago
commands-win32.c qga: Improve Windows filesystem space info retrieval logic 2 months ago
commands-windows-ssh.c qga: fix -Wsometimes-uninitialized windows warning 1 year ago
commands-windows-ssh.h qga: Implement SSH commands for Windows 2 years ago
commands.c qga: Fix truncated output handling in guest-exec status reporting 4 months ago
cutils.c qga: Clean up includes 3 years ago
cutils.h qga: Clean up includes 3 years ago
guest-agent-command-state.c qga: use local path for local headers 8 years ago
guest-agent-core.h qga-win: implement a 'guest-get-load' command 6 months ago
main.c qga: ignore channel_init() fail if 'retry_path' is set 4 months ago
meson.build qga-win: implement a 'guest-get-load' command 6 months ago
messages-win32.mc qga-win: add logging to Windows event log 3 years ago
qapi-schema.json qga/qapi-schema: Clean up whitespace between definitions 2 months ago
service-win32.c qga: Remove unnecessary glib.h includes 10 years ago
service-win32.h qga-win: changing --retry-path option behavior 7 years ago
vss-win32.c qga: fix potentially not initialized nr_volumes in qga_vss_fsfreeze() 4 months ago
vss-win32.h qga-win: add support for qmp_guest_fsfreeze_freeze_list 7 years ago