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