Re: [PATCH 5/5] Use virStringHasSuffix() where possible

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 06, 2019 at 17:54:04 +0100, Andrea Bolognani wrote:
> 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@xxxxxxxxxx>
> ---
>  src/conf/virsecretobj.c  | 2 +-
>  src/conf/virstorageobj.c | 2 +-
>  src/libvirt_private.syms | 1 +
>  src/vmx/vmx.c            | 2 +-
>  tests/testutils.c        | 4 ++--
>  tests/virschematest.c    | 4 ++--
>  tools/nss/libvirt_nss.c  | 4 ++--
>  7 files changed, 10 insertions(+), 9 deletions(-)

[...]

> diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
> index d7ccd509e9..1eab68622d 100644
> --- a/src/libvirt_private.syms
> +++ b/src/libvirt_private.syms
> @@ -2958,6 +2958,7 @@ virStringFilterChars;
>  virStringHasCaseSuffix;
>  virStringHasChars;
>  virStringHasControlChars;
> +virStringHasSuffix;

This should be in previous commit.

>  virStringIsEmpty;
>  virStringIsPrintable;
>  virStringListAdd;

ACK with that fixed.

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux