]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Tweak virStringMatchesNameSuffix()
authorAndrea Bolognani <abologna@redhat.com>
Thu, 7 Mar 2019 09:47:21 +0000 (10:47 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 7 Mar 2019 16:55:33 +0000 (17:55 +0100)
commit3d46d4a1bc8eac9b3110d2cfe442b3e241c81418
tree6947d59433e861c96a53394891f631afb9b629fb
parent17eb6fc1b85b5a84b4e637177f3454704b937b8f
util: Tweak virStringMatchesNameSuffix()

We can use STRNEQ() instead of STRNEQLEN() since we're only
interested in the trailing part of the string and we've
already verified that the length of file, name and suffix
are those we expect.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
ACKed-by: Peter Krempa <pkrempa@redhat.com>
src/util/virstring.c