diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-03-16 18:18:24 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2020-03-17 21:43:12 +0100 |
commit | f0ccc00be16e6f4c925f90305e2d4ed9dd11c8fd (patch) | |
tree | f86a8df637eb568c4ee834292840363231c3f197 /qga/commands.c | |
parent | df4097aeaf71e1ff0574222760821467a7c86c0f (diff) | |
download | qemu-f0ccc00be16e6f4c925f90305e2d4ed9dd11c8fd.zip qemu-f0ccc00be16e6f4c925f90305e2d4ed9dd11c8fd.tar.gz qemu-f0ccc00be16e6f4c925f90305e2d4ed9dd11c8fd.tar.bz2 |
qmp: constify QmpCommand and list
Since 0b69f6f72ce47a37a749b056b6d5ec64c61f11e8 "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>
Diffstat (limited to 'qga/commands.c')
-rw-r--r-- | qga/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qga/commands.c b/qga/commands.c index 43c323c..f8852be 100644 --- a/qga/commands.c +++ b/qga/commands.c @@ -54,7 +54,7 @@ void qmp_guest_ping(Error **errp) slog("guest-ping called"); } -static void qmp_command_info(QmpCommand *cmd, void *opaque) +static void qmp_command_info(const QmpCommand *cmd, void *opaque) { GuestAgentInfo *info = opaque; GuestAgentCommandInfo *cmd_info; |