summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-12-11 22:48:38 +0000
committerJeff Johnston <jjohnstn@redhat.com>2008-12-11 22:48:38 +0000
commit04e475294365a9abe8f09746575623e1fc3b98e6 (patch)
treed728b22532b8386472bdf44218011e6c3f92a0b0
parent0e859ad10fc088ebccf03cb99fb39bbd90eae899 (diff)
downloadcygnal-04e475294365a9abe8f09746575623e1fc3b98e6.tar.gz
cygnal-04e475294365a9abe8f09746575623e1fc3b98e6.tar.bz2
cygnal-04e475294365a9abe8f09746575623e1fc3b98e6.zip
2008-12-11 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/time.h(gettimeofday): Change prototype so 2nd parameter is void *, matching SUSV2. * libc/syscalls/sysgettod.c(gettimeofday): Ditto.
-rw-r--r--newlib/ChangeLog6
-rw-r--r--newlib/libc/include/sys/time.h2
-rw-r--r--newlib/libc/syscalls/sysgettod.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index c422b2889..feb1ef079 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-11 Jeff Johnston <jjohnstn@redhat.com>
+
+ * libc/include/sys/time.h(gettimeofday): Change prototype so
+ 2nd parameter is void *, matching SUSV2.
+ * libc/syscalls/sysgettod.c(gettimeofday): Ditto.
+
2008-12-11 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
* configure.host: Add lm32
diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h
index 9edd70185..26346056a 100644
--- a/newlib/libc/include/sys/time.h
+++ b/newlib/libc/include/sys/time.h
@@ -70,7 +70,7 @@ struct itimerval {
} while (0)
#endif /* defined (__rtems__) || defined (__CYGWIN__) */
-int _EXFUN(gettimeofday, (struct timeval *__p, struct timezone *__tz));
+int _EXFUN(gettimeofday, (struct timeval *__p, void *__tz));
int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *));
int _EXFUN(utimes, (const char *__path, const struct timeval *__tvp));
int _EXFUN(getitimer, (int __which, struct itimerval *__value));
diff --git a/newlib/libc/syscalls/sysgettod.c b/newlib/libc/syscalls/sysgettod.c
index 9f25b052e..af6d8ab3f 100644
--- a/newlib/libc/syscalls/sysgettod.c
+++ b/newlib/libc/syscalls/sysgettod.c
@@ -7,7 +7,7 @@
int
_DEFUN (gettimeofday, (ptimeval, ptimezone),
struct timeval *ptimeval _AND
- struct timezone *ptimezone)
+ void *ptimezone)
{
return _gettimeofday_r (_REENT, ptimeval, ptimezone);
}