]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: Unify and refactor 'PTY' case in qemuMonitorJSONAttachCharDev
authorPeter Krempa <pkrempa@redhat.com>
Thu, 1 Dec 2022 15:47:29 +0000 (16:47 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 2 Dec 2022 15:18:37 +0000 (16:18 +0100)
commit962ce78175f010ce3a0947a89c63422af925ec14
tree63bd14064539320584d393cb519ad6f82b3fcf98
parent80f1b8a5b0059ce28391b2ec7e872e9247729c80
qemu: monitor: Unify and refactor 'PTY' case in qemuMonitorJSONAttachCharDev

Use qemuMonitorJSONGetReply and unify the two blocks with the same
condition.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_monitor_json.c