diff options
author | Eric Blake <eblake@redhat.com> | 2016-04-28 15:45:13 -0600 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2016-05-12 09:47:54 +0200 |
commit | fc471c18d5d2ec713d5a019f9530398675494bc8 (patch) | |
tree | 1fb03415f178be63e207465cff081d9968261787 /tests/test-qmp-commands.c | |
parent | b471d012e5d7bec1d2272738141e121b5581fcdf (diff) | |
download | qemu-fc471c18d5d2ec713d5a019f9530398675494bc8.zip qemu-fc471c18d5d2ec713d5a019f9530398675494bc8.tar.gz qemu-fc471c18d5d2ec713d5a019f9530398675494bc8.tar.bz2 |
qapi: Consolidate QMP input visitor creation
Rather than having two separate ways to create a QMP input
visitor, where the safer approach has the more verbose name,
it is better to consolidate things into a single function
where the caller must explicitly choose whether to be strict
or to ignore excess input. This patch is the strictly
mechanical conversion; the next patch will then audit which
uses can be made stricter.
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1461879932-9020-6-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests/test-qmp-commands.c')
-rw-r--r-- | tests/test-qmp-commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-qmp-commands.c b/tests/test-qmp-commands.c index 14a9ebb..a8d37c4 100644 --- a/tests/test-qmp-commands.c +++ b/tests/test-qmp-commands.c @@ -222,7 +222,7 @@ static void test_dealloc_partial(void) ud2_dict = qdict_new(); qdict_put_obj(ud2_dict, "string0", QOBJECT(qstring_from_str(text))); - qiv = qmp_input_visitor_new(QOBJECT(ud2_dict)); + qiv = qmp_input_visitor_new(QOBJECT(ud2_dict), false); visit_type_UserDefTwo(qmp_input_get_visitor(qiv), NULL, &ud2, &err); qmp_input_visitor_cleanup(qiv); QDECREF(ud2_dict); |