]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virStorageSourceIsSameLocation: Use switch statement for individual storage types
authorPeter Krempa <pkrempa@redhat.com>
Fri, 7 Jan 2022 16:53:58 +0000 (17:53 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 6 Jan 2023 14:31:13 +0000 (15:31 +0100)
commit75a7a3b597d5ffa9240fd1d72cee3115ecdcc046
tree919d2bd64ac8dc41f12ed2a232e6ac2b5bbe18d6
parent08406591cecff4506caa562f0dcd7de37943ddfd
virStorageSourceIsSameLocation: Use switch statement for individual storage types

Convert to a switch instead of a bunch of 'if (type == ...).

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/conf/storage_source_conf.c