summaryrefslogtreecommitdiffstats
path: root/newlib/libc/reent/gettimeofdayr.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-07-06 16:56:30 +0000
committerJeff Johnston <jjohnstn@redhat.com>2007-07-06 16:56:30 +0000
commit0be2bc94e7ecd7b5555d114a54fc3a48b405ebbd (patch)
tree8c63fd8476ba0883f56cf3bfa656af18e8688a0a /newlib/libc/reent/gettimeofdayr.c
parentba9af2d7ece00008ecc871f6891cc000c7cb4339 (diff)
downloadcygnal-0be2bc94e7ecd7b5555d114a54fc3a48b405ebbd.tar.gz
cygnal-0be2bc94e7ecd7b5555d114a54fc3a48b405ebbd.tar.bz2
cygnal-0be2bc94e7ecd7b5555d114a54fc3a48b405ebbd.zip
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/reent/gettimeofdayr.c')
-rw-r--r--newlib/libc/reent/gettimeofdayr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/reent/gettimeofdayr.c b/newlib/libc/reent/gettimeofdayr.c
index 64a8cda55..f5a49f73c 100644
--- a/newlib/libc/reent/gettimeofdayr.c
+++ b/newlib/libc/reent/gettimeofdayr.c
@@ -40,7 +40,7 @@ ANSI_SYNOPSIS
#include <time.h>
int _gettimeofday_r(struct _reent *<[ptr]>,
struct timeval *<[ptimeval]>,
- struct timezone *<[ptimezone]>);
+ void *<[ptimezone]>);
TRAD_SYNOPSIS
#include <reent.h>
@@ -48,7 +48,7 @@ TRAD_SYNOPSIS
int _gettimeofday_r(<[ptr]>, <[ptimeval]>, <[ptimezone]>)
struct _reent *<[ptr]>;
struct timeval *<[ptimeval]>;
- struct timezone *<[ptimezone]>;
+ void *<[ptimezone]>;
DESCRIPTION
This is a reentrant version of <<gettimeofday>>. It
@@ -63,7 +63,7 @@ int
_DEFUN (_gettimeofday_r, (ptr, ptimeval, ptimezone),
struct _reent *ptr _AND
struct timeval *ptimeval _AND
- struct timezone *ptimezone)
+ void *ptimezone)
{
int ret;