]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu/qemu_migration_params: use virStringParseYesNo helper
authorMao Zhongyi <maozhongyi@cmss.chinamobile.com>
Thu, 17 Oct 2019 03:19:33 +0000 (11:19 +0800)
committerCole Robinson <crobinso@redhat.com>
Thu, 14 Nov 2019 13:14:50 +0000 (08:14 -0500)
commit35e1547870c7a0c9bfb2bb6ff6ead359da69c951
treee912e9ea57dad43ab423dd9d4dd6ecc9aa5bdd98
parent5da6615baf72168decc1b331063f8e232657466d
qemu/qemu_migration_params: use virStringParseYesNo helper

A function virStringParseYesNo was added to convert
string 'yes' to true and 'no' to false, so use this
helper to replace 'STREQ(.*, \"yes\")' and
'STREQ(.*, \"no\")' as it allows us to drop several
repetitive if-then-else string->bool conversion blocks.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
src/qemu/qemu_migration_params.c