aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/time/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/time/time.c')
-rw-r--r--newlib/libc/time/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/time/time.c b/newlib/libc/time/time.c
index 1e086f4..2506388 100644
--- a/newlib/libc/time/time.c
+++ b/newlib/libc/time/time.c
@@ -43,7 +43,7 @@ _DEFUN (time, (t),
{
struct timeval now;
- if (_gettimeofday_r (_REENT, &now, (struct timezone *) 0) >= 0)
+ if (_gettimeofday_r (_REENT, &now, NULL) >= 0)
{
if (t)
*t = now.tv_sec;