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

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

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]