]> xenbits.xensource.com Git - libvirt.git/commit
util: Make virStringStripSuffix() return bool
authorAndrea Bolognani <abologna@redhat.com>
Thu, 7 Mar 2019 09:18:38 +0000 (10:18 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 7 Mar 2019 16:55:29 +0000 (17:55 +0100)
commit956817ef497491d809b248408525260581de61ba
treee45e73f88a5cdddd0aec046238fb8c66194f0762
parentfcf78395d7b80112b94edf16c7e20a0bc4f4fe34
util: Make virStringStripSuffix() return bool

While this function is not, strictly speaking, a predicate,
it still mostly behaves like one as evidenced by the vast
majority of its callers, so using bool rather than int as
the return type makes sense.

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