diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-08-29 15:40:34 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2018-08-30 16:08:42 +0200 |
commit | 6cd112e26664994cb5eff207e765c9c3e55f73ea (patch) | |
tree | 74da1007d009cb7b15abe80147f075ca949d9329 /monitor.c | |
parent | 8af6bb14a3a8bb40b0b3bf0171c018cd39026cb8 (diff) | |
download | qemu-6cd112e26664994cb5eff207e765c9c3e55f73ea.zip qemu-6cd112e26664994cb5eff207e765c9c3e55f73ea.tar.gz qemu-6cd112e26664994cb5eff207e765c9c3e55f73ea.tar.bz2 |
monitor: consitify qmp_send_response() QDict argument
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20180829134043.31706-2-marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -503,9 +503,9 @@ int monitor_fprintf(FILE *stream, const char *fmt, ...) return 0; } -static void qmp_send_response(Monitor *mon, QDict *rsp) +static void qmp_send_response(Monitor *mon, const QDict *rsp) { - QObject *data = QOBJECT(rsp); + const QObject *data = QOBJECT(rsp); QString *json; json = mon->flags & MONITOR_USE_PRETTY ? qobject_to_json_pretty(data) : |