Date: Tue, 30 Mar 2004 10:05:20 -0800 From: John-Mark Gurney <gurney_j@efn.org> To: RJ45 <rj45@slacknet.com> Cc: freebsd-sparc64@freebsd.org Subject: Re: problem with dates Message-ID: <20040330180520.GT567@funkthat.com> In-Reply-To: <Pine.LNX.4.21.0403301038110.29700-100000@slacknet.slacknet.com> References: <Pine.LNX.4.21.0403301038110.29700-100000@slacknet.slacknet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
RJ45 wrote this message on Tue, Mar 30, 2004 at 10:39 -0700: > even if this si the current time: > > Tue Mar 30 19:39:04 CEST 2004 > > anyone got this problem? > thanks Looks like the code is broken in that it assumes that time_t is an int, and passes a pointer to a time_t to another function that casts it to an integer... This would turn up this problem since time_t's are now 64bits, and int's are 32bits, and since sparc64 is a big endian platform, the first 32bits of a 64bit time_t are usually zero... Tell the author of the program that his code is broken. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040330180520.GT567>