diff --git a/progs/base/bin/date.c b/progs/base/bin/date.c index 082a5f9..f583b0f 100644 --- a/progs/base/bin/date.c +++ b/progs/base/bin/date.c @@ -9,7 +9,7 @@ int main(int argc, char **argv) { char buf[256]; gettimeofday(&tv0, NULL); struct tm tm0; - gmtime_r(&tv0.tv_sec, &tm0); + gmtime_r((time_t *) &tv0.tv_sec, &tm0); strftime(buf, sizeof(buf), "%c\n", &tm0); write(STDOUT_FILENO, buf, strlen(buf));