]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: Remove 'timeout' argument from qemuMonitorOpen
authorPeter Krempa <pkrempa@redhat.com>
Tue, 2 Aug 2022 11:45:49 +0000 (13:45 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 3 Aug 2022 12:26:56 +0000 (14:26 +0200)
commitdce90474960366e33fcb107a86795b2364bdebba
tree5c6f9eebc9085840b35b59380a75cb7925f45d12
parentd79216188d6606faf3b45f4e658880a029776675
qemu: monitor: Remove 'timeout' argument from qemuMonitorOpen

The 'timeout' argument is used by 'qemuMonitorOpenUnix' only when the
'retry' argument is true. The callers of 'qemuMonitorOpen' only pass '0'
for timeout when they call it with 'retry' true and use other values
when 'retry' is false and thus ignored.

This means we can remove the argument and simply have it set to the
default value of QEMU_DEFAULT_MONITOR_WAIT.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_process.c
tests/qemumonitortestutils.c