Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-07-06 20:56:30 +0400
committerJeff Johnston <jjohnstn@redhat.com>2007-07-06 20:56:30 +0400
commit0be2bc94e7ecd7b5555d114a54fc3a48b405ebbd (patch)
tree8c63fd8476ba0883f56cf3bfa656af18e8688a0a /newlib/libc/time
parentba9af2d7ece00008ecc871f6891cc000c7cb4339 (diff)
2007-07-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/time.h (gettimeofday): Change to proper prototype where second parameter is void *. * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype accordingly. * libc/include/reent.h: Fix prototype for _gettimeofday_r. * libc/sys/arm/syscalls.c: Fix gettimeofday function signature. * libc/sys/rdos/gettod.c: Ditto. * libc/sys/sh/syscalls.c: Ditto. * libc/time/time.c (time): Change call to _gettimeofday_r to pass NULL as 2nd argument.
Diffstat (limited to 'newlib/libc/time')
-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 1e086f403..2506388f6 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;