64bit time_t patch

Julien ÉLIE julien at trigofacile.com
Sun Dec 15 13:45:42 UTC 2013


Hi,

>>> "S.P.Zeidler" writes:
>>>
>>> (64bit time_t on a 32bit machine)
>
> -            (long) (atimes/total) + starttime
> +            (long) ((atimes/total) + starttime)
>
> -  d_printf (1,"Preparing wake %d at date %ld for %d seconds\n",
> -           (int) id, (long) now, timeToWake - now) ;
> +  d_printf (1,"Preparing wake %d at date %ld for %ld seconds\n",
> +           (int) id, (long) now, (long) (timeToWake - now)) ;

By the way, did you try to build CURRENT (trunk) using "make warnings" 
instead of "make" on your system?
Maybe some of these issues are triggered off by gcc (for instance by the 
"format" warning).  Also, though not enabled by default by "make 
warnings", you could try to add "-Wconversion -Wno-sign-conversion" to 
the WARNINGS variable in Makefile.global and remove "-Werror" so that 
the build does not stop upon finding an error.  Maybe it will catch a 
few of these implicit wrong conversions on your system...

-- 
Julien ÉLIE

« On dirait que Bonemine lui a tapé dans l'œil. » (Astérix)


More information about the inn-workers mailing list