On 4/15/20 3:30 AM, Markus Armbruster wrote:
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 <arm...@redhat.com>
---
  include/qapi/qmp/qlist.h |  2 --
  qobject/qjson.c          | 31 ++++++++++------------------
  qobject/qlist.c          | 44 +++++++++++-----------------------------
  tests/check-qlist.c      | 37 +++++++++++++--------------------
  4 files changed, 37 insertions(+), 77 deletions(-)


Reviewed-by: Eric Blake <ebl...@redhat.com>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Reply via email to