[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]