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

Re: [libvirt] [PATCH v2] virsh: time_t is not a long on FreeBSD



On 05/25/2011 05:53 PM, Eric Blake wrote:
>  -            localtime_r(&creation,&time_info);
>  +            creation_time_t = creation_longlong;
>  +            if (creation_time_t != creation_longlong) {
>  +                vshError(ctl, "%s", _("time_t overflow"));

We shouldn't hit this error until 2038, and by then, hopefully more
32-bit platforms (if any are still running) will have switched to 64-bit
time_t.:)

If FreeBSD will still have time_t==int, it will die a painful death in 2038 independent of 32- vs. 64-bit. :)

Paolo


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