problem with dates

John-Mark Gurney gurney_j at efn.org
Tue Mar 30 10:05:22 PST 2004


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."


More information about the freebsd-sparc64 mailing list