diff --git a/lib/roken/strftime.c b/lib/roken/strftime.c index 8681d1b86..35a8c3a0c 100644 --- a/lib/roken/strftime.c +++ b/lib/roken/strftime.c @@ -290,7 +290,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,