mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
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>
This commit is contained in:
parent
8af6bb14a3
commit
6cd112e266
@ -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) :
|
||||
|
Loading…
Reference in New Issue
Block a user