Re: [libvirt] [PATCH 03/10] Refactor major.minor.micro version parsing into a function

2010-03-31 Thread Jim Meyering
Eric Blake wrote: On 03/30/2010 10:20 AM, Matthias Bolte wrote: +/** + * virParseVersionString: + * @str: const char pointer to the version string + * @version: unsigned long pointer to output the version number + * + * Parse an unsigned version number from a version string. Expecting + *

[libvirt] [PATCH 03/10] Refactor major.minor.micro version parsing into a function

2010-03-30 Thread Matthias Bolte
virParseVersionString uses virStrToLong_ui instead of sscanf. This also fixes a bug in the UML driver, that always returned 0 as version number. --- src/esx/esx_driver.c | 31 ++- src/libvirt_private.syms |1 + src/lxc/lxc_driver.c | 10

Re: [libvirt] [PATCH 03/10] Refactor major.minor.micro version parsing into a function

2010-03-30 Thread Eric Blake
On 03/30/2010 10:20 AM, Matthias Bolte wrote: +/** + * virParseVersionString: + * @str: const char pointer to the version string + * @version: unsigned long pointer to output the version number + * + * Parse an unsigned version number from a version string. Expecting + * 'major.minor.micro'