[libvirt] [PATCH 3/4] Validate the bios_date format for <sysinfo>

Eric Blake eblake at redhat.com
Thu May 9 16:30:58 UTC 2013


On 05/09/2013 05:43 AM, John Ferlan wrote:
> On 05/09/2013 06:59 AM, Martin Kletzander wrote:
>> On 04/30/2013 08:19 PM, John Ferlan wrote:
>> I find it a bit harder to read.  Wouldn't this be more nicer if we used
>> sscanf()?  Or we could take care a bit about the date and do it even
>> shorter with strptime(), something like this:

strptime() is not portable - mingw lacks it, and gnulib doesn't provide
it (gnulib prefers to use the parse-datetime module used by coreutils,
but that's GPL, so we can't use it either).  We're stuck with
hand-rolled parsing.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list