mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
qmp: constify QmpCommand and list
Since 0b69f6f72c
"qapi: remove
qmp_unregister_command()", the command list can be declared const.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Damien Hedde <damien.hedde@greensocs.com>
Message-Id: <20200316171824.2319695-1-marcandre.lureau@redhat.com>
[Rebased]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
committed by
Markus Armbruster
parent
df4097aeaf
commit
f0ccc00be1
@ -101,7 +101,7 @@ VersionInfo *qmp_query_version(Error **errp)
|
||||
return info;
|
||||
}
|
||||
|
||||
static void query_commands_cb(QmpCommand *cmd, void *opaque)
|
||||
static void query_commands_cb(const QmpCommand *cmd, void *opaque)
|
||||
{
|
||||
CommandInfoList *info, **list = opaque;
|
||||
|
||||
|
Reference in New Issue
Block a user