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

Eric Blake eblake at redhat.com
Wed Jul 6 21:21:14 UTC 2011


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 at mxm.nes.nec.co.jp>
> ---
>  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 at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110706/550cb76a/attachment-0001.sig>


More information about the libvir-list mailing list