tm->tm_sec);
}
-/*
- a hack to move the stupid gcc strftime warning to one place - see manual page
-*/
-#ifdef HAVE_STRFTIME
-size_t sys_strftime(char *s, size_t max, const char *fmt, const struct tm *tm)
-{
- return strftime(s, max, fmt, tm);
-}
-#endif
-
/****************************************************************************
Return the date and time as a string
****************************************************************************/
in the gcc warning, not a bug in this code. See a recent
strftime() manual page for details.
*/
- sys_strftime(tempTime,sizeof(tempTime)-1,"%c %Z",tm);
+ strftime(tempTime,sizeof(tempTime)-1,"%c %Z",tm);
TimeBuf = talloc_strdup(mem_ctx, tempTime);
#else
TimeBuf = talloc_strdup(mem_ctx, asctime(tm));
ZERO_ARRAY(timestr);
tm = localtime(&r.generic.out.time);
- sys_strftime(timestr, sizeof(timestr)-1, "%c %Z",tm);
+ strftime(timestr, sizeof(timestr)-1, "%c %Z",tm);
printf("%s\n",timestr);