Re: [PATCHv2 2/2] sysinfo: delete unnecessary white space of sysinfo.

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

 



On 06/28/2011 10:43 PM, Minoru Usui wrote:
> sysinfo: delete unnecessary white space of sysinfo.
> 
>   * Trim each element and delete null entry of sysinfo by virSkipSpacesBackwards().
> 
> Signed-off-by: Minoru Usui <usui@xxxxxxxxxxxxxxxxx>
> ---
>  src/util/sysinfo.c |   21 +++++++++++++++++++++
>  1 files changed, 21 insertions(+), 0 deletions(-)
> 
> diff --git a/src/util/sysinfo.c b/src/util/sysinfo.c
> index a6e525b..d84b973 100644
> --- a/src/util/sysinfo.c
> +++ b/src/util/sysinfo.c
> @@ -246,6 +246,7 @@ virSysinfoParseProcessor(char *base, virSysinfoDefPtr ret)
>          if ((cur = strstr(base, "Socket Designation: ")) != NULL) {
>              cur += 20;
>              eol = strchr(cur, '\n');
> +            virSkipSpacesBackwards(cur, &eol);
>              if ((eol) &&

ACK and pushed; this version works (rather than needing to use v4) once
I fixed my patch.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital 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]