]> git.proxmox.com Git - mirror_qemu.git/commit - qobject/qlist.c
qobject: Eliminate qlist_iter(), use QLIST_FOREACH_ENTRY() instead
authorMarkus Armbruster <armbru@redhat.com>
Wed, 15 Apr 2020 08:30:46 +0000 (10:30 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 30 Apr 2020 04:51:15 +0000 (06:51 +0200)
commit2f2ec111795119b2e020bc0cbf4b5f42878574b2
treeb4e60346dc8c6f5ea8e59013e85853dd1d960af6
parent1cd7741ef18e4333b17d64aaed3cd48e3e182a57
qobject: Eliminate qlist_iter(), use QLIST_FOREACH_ENTRY() instead

qlist_iter() has just three uses outside tests/.  Replace by
QLIST_FOREACH_ENTRY() for more concise code and less type punning.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200415083048.14339-4-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
include/qapi/qmp/qlist.h
qobject/qjson.c
qobject/qlist.c
tests/check-qlist.c