diff options
Diffstat (limited to 'crypto/heimdal/lib/roken/strftime.c')
-rw-r--r-- | crypto/heimdal/lib/roken/strftime.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/crypto/heimdal/lib/roken/strftime.c b/crypto/heimdal/lib/roken/strftime.c index 985b38a..b7176b6 100644 --- a/crypto/heimdal/lib/roken/strftime.c +++ b/crypto/heimdal/lib/roken/strftime.c @@ -33,9 +33,12 @@ #ifdef HAVE_CONFIG_H #include <config.h> #endif +#ifdef TEST_STRPFTIME +#include "strpftime-test.h" +#endif #include "roken.h" -RCSID("$Id: strftime.c,v 1.13 2002/08/20 12:42:37 joda Exp $"); +RCSID("$Id: strftime.c 21896 2007-08-09 08:46:08Z lha $"); static const char *abb_weekdays[] = { "Sun", @@ -167,7 +170,7 @@ week_number_mon4 (const struct tm *tm) * */ -size_t +size_t ROKEN_LIB_FUNCTION strftime (char *buf, size_t maxsize, const char *format, const struct tm *tm) { @@ -290,7 +293,7 @@ strftime (char *buf, size_t maxsize, const char *format, case 's' : ret = snprintf (buf, maxsize - n, - "%d", (int)mktime((struct tm *)tm)); + "%d", (int)mktime(rk_UNCONST(tm))); break; case 'S' : ret = snprintf (buf, maxsize - n, |