aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2018-08-29 15:40:34 +0200
committerMarkus Armbruster <armbru@redhat.com>2018-08-30 16:08:42 +0200
commit6cd112e26664994cb5eff207e765c9c3e55f73ea (patch)
tree74da1007d009cb7b15abe80147f075ca949d9329 /monitor.c
parent8af6bb14a3a8bb40b0b3bf0171c018cd39026cb8 (diff)
downloadqemu-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index c1add2c..bd0810d 100644
--- a/monitor.c
+++ b/monitor.c
@@ -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) :