[libvirt] [PATCH 4/5] util: Add virStringHasSuffix()
Peter Krempa
pkrempa at redhat.com
Thu Mar 7 07:57:18 UTC 2019
On Wed, Mar 06, 2019 at 17:54:03 +0100, Andrea Bolognani wrote:
> This is the case-sensitive counterpart of the existing
> virStringHasCaseSuffix() function.
>
> Signed-off-by: Andrea Bolognani <abologna at redhat.com>
> ---
> src/util/virstring.c | 13 +++++++++++++
> src/util/virstring.h | 2 ++
> 2 files changed, 15 insertions(+)
>
> diff --git a/src/util/virstring.c b/src/util/virstring.c
> index b4d10f9884..b9b33e3d1a 100644
> --- a/src/util/virstring.c
> +++ b/src/util/virstring.c
> @@ -1235,6 +1235,19 @@ virStringReplace(const char *haystack,
> return virBufferContentAndReset(&buf);
> }
>
> +int
Why doesn't this return bool?
> +virStringHasSuffix(const char *str,
> + const char *suffix)
ACK with appropriate return type.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190307/e28801a9/attachment-0001.sig>
More information about the libvir-list
mailing list