git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2037
d4fa192b-c00b-0410-8231-
f00ffab90ce4
uint32_t crc32_l(const void *p1, unsigned l);
/* from libvarnish/time.c */
-void TIM_format(time_t t, char *p);
+void TIM_format(double t, char *p);
time_t TIM_parse(const char *p);
double TIM_mono(void);
double TIM_real(void);
}
void
-TIM_format(time_t t, char *p)
+TIM_format(double t, char *p)
{
struct tm tm;
+ time_t tt;
- gmtime_r(&t, &tm);
+ tt = (time_t) t;
+ gmtime_r(&tt, &tm);
strftime(p, 30, "%a, %d %b %Y %T GMT", &tm);
}