On Fri, Jun 07, 2013 at 09:49:00AM +0000, Thorsten Glaser wrote:
> Russ Allbery <rra <at> debian.org> writes:
> 
> > Be aware that x32 has sizeof(time_t) > sizeof(long), so you should expect
> 
> So has MirBSD/i386 (since 2004-06-19) and NetBSD (since roughly a year).
> 
> Most frequent thing is format specifiers when struct tm.tm_year is time_t
> instead of long (which is a requirement for time_t to be able to round-trip
> through struct tm, which is required by quite some software).

tm_year should be an int, not a time_t or long.  Note that it
counts in years, and so even a 16 bit int isn't going to cause
much problems for tm_year.


Kurt


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130607212217.gb8...@roeckx.be

Reply via email to