aboutsummaryrefslogtreecommitdiff
path: root/include/qapi
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2020-04-24 10:43:25 +0200
committerMarkus Armbruster <armbru@redhat.com>2020-04-30 06:51:15 +0200
commit294c90662ac9daae2c3bbf608296cf037925bd95 (patch)
tree55275800f01bf6c241c8bdfb6e608fd826b460a6 /include/qapi
parent3777d36e674ca3b75b63413b4fb506b108309144 (diff)
downloadqemu-294c90662ac9daae2c3bbf608296cf037925bd95.zip
qemu-294c90662ac9daae2c3bbf608296cf037925bd95.tar.gz
qemu-294c90662ac9daae2c3bbf608296cf037925bd95.tar.bz2
qapi: Fix the virtual walk example in visitor.h's big comment
Call visit_check_list(). Missed in commit a4a1c70dc7 "qapi: Make input visitors detect unvisited list tails". Drop an irrelevant error_propagate() while there. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20200424084338.26803-3-armbru@redhat.com>
Diffstat (limited to 'include/qapi')
-rw-r--r--include/qapi/visitor.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/qapi/visitor.h b/include/qapi/visitor.h
index f8a0fc1..7f63e4c 100644
--- a/include/qapi/visitor.h
+++ b/include/qapi/visitor.h
@@ -215,6 +215,9 @@
* goto outlist;
* }
* outlist:
+ * if (!err) {
+ * visit_check_list(v, &err);
+ * }
* visit_end_list(v, NULL);
* if (!err) {
* visit_check_struct(v, &err);
@@ -222,7 +225,6 @@
* outobj:
* visit_end_struct(v, NULL);
* out:
- * error_propagate(errp, err);
* visit_free(v);
* </example>
*/