Re: [libvirt] [PATCH 2/2] nodeinfo: use virDirRead API

2014-04-21 Thread Eric Blake
On 04/20/2014 05:53 AM, Natanael Copa wrote: > This makes sure that errno is reset before readdir is called, even if > the loop does a 'continue'. > > This fixes issue with musl libc which sets errno on sscanf. The > following 'continue' makes the errno be set before calling readdir. > > Signed-o

[libvirt] [PATCH 2/2] nodeinfo: use virDirRead API

2014-04-20 Thread Natanael Copa
This makes sure that errno is reset before readdir is called, even if the loop does a 'continue'. This fixes issue with musl libc which sets errno on sscanf. The following 'continue' makes the errno be set before calling readdir. Signed-off-by: Natanael Copa --- src/nodeinfo.c | 29