Use virStringHasSuffix() where possible
commit094f29df07f2cdcf7a6727fa85004f83425bad96
authorAndrea Bolognani <abologna@redhat.com>
Thu, 7 Mar 2019 08:40:54 +0000 (7 09:40 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 7 Mar 2019 09:10:49 +0000 (7 10:10 +0100)
tree787ac3d8b7d6278ea2beefc15fd19992a5f935fa
parentd93b9e88293c95220078bcb5db930261c1b7a333
Use virStringHasSuffix() where possible

When dealing with internal paths we don't need to worry about
whether or not suffixes are lowercase since we have full control
over them, which means we can avoid performing case-insensitive
string comparisons.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
ACKed-by: Peter Krempa <pkrempa@redhat.com>
src/conf/virsecretobj.c
src/conf/virstorageobj.c
src/vmx/vmx.c
tests/testutils.c
tests/virschematest.c
tools/nss/libvirt_nss.c