diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2007-07-06 16:56:30 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2007-07-06 16:56:30 +0000 |
commit | 0be2bc94e7ecd7b5555d114a54fc3a48b405ebbd (patch) | |
tree | 8c63fd8476ba0883f56cf3bfa656af18e8688a0a /newlib/libc/sys/arm | |
parent | ba9af2d7ece00008ecc871f6891cc000c7cb4339 (diff) | |
download | newlib-0be2bc94e7ecd7b5555d114a54fc3a48b405ebbd.zip newlib-0be2bc94e7ecd7b5555d114a54fc3a48b405ebbd.tar.gz newlib-0be2bc94e7ecd7b5555d114a54fc3a48b405ebbd.tar.bz2 |
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/sys/arm')
-rw-r--r-- | newlib/libc/sys/arm/syscalls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/sys/arm/syscalls.c b/newlib/libc/sys/arm/syscalls.c index 0e9cbc2..65c96b1 100644 --- a/newlib/libc/sys/arm/syscalls.c +++ b/newlib/libc/sys/arm/syscalls.c @@ -22,7 +22,7 @@ int _system _PARAMS ((const char *)); int _rename _PARAMS ((const char *, const char *)); int isatty _PARAMS ((int)); clock_t _times _PARAMS ((struct tms *)); -int _gettimeofday _PARAMS ((struct timeval *, struct timezone *)); +int _gettimeofday _PARAMS ((struct timeval *, void *)); void _raise _PARAMS ((void)); int _unlink _PARAMS ((const char *)); int _link _PARAMS ((void)); @@ -559,9 +559,9 @@ _raise (void) } int -_gettimeofday (struct timeval * tp, struct timezone * tzp) +_gettimeofday (struct timeval * tp, void * tzvp) { - + struct timezone *tzp = tzvp; if (tp) { /* Ask the host for the seconds since the Unix epoch. */ |