Re: [PATCH 1/5] util: Rename virFileHasSuffix() to virStringHasCaseSuffix()

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

 



On Wed, Mar 06, 2019 at 17:54:00 +0100, Andrea Bolognani wrote:
> Despite its name, this is really just a general-purpose string
> manipulation function, so it should be moved to the virstring
> module and renamed accordingly.
> 
> In addition to the obvious s/File/String/, also tweak the name
> to make it clear that the presence of the suffix is verified
> using case-insensitive comparison.

How about also adding a function comment with it?

> 
> A few trivial whitespace changes are squashed in.
> 
> Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>

ACK.

You could also fix the return value type.

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