mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
migration/multifd: Make MultiFDMethods const
The methods are defined at module_init time and don't ever change. Make them const. Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Fabiano Rosas <farosas@suse.de>
This commit is contained in:
parent
40c9471e40
commit
308d165c77
7 changed files with 10 additions and 10 deletions
|
@ -265,7 +265,7 @@ static int multifd_zstd_recv(MultiFDRecvParams *p, Error **errp)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static MultiFDMethods multifd_zstd_ops = {
|
||||
static const MultiFDMethods multifd_zstd_ops = {
|
||||
.send_setup = multifd_zstd_send_setup,
|
||||
.send_cleanup = multifd_zstd_send_cleanup,
|
||||
.send_prepare = multifd_zstd_send_prepare,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue