OSDN Git Service

2008-12-11 Jeff Johnston <jjohnstn@redhat.com>
authorjjohnstn <jjohnstn>
Thu, 11 Dec 2008 22:48:38 +0000 (22:48 +0000)
committerjjohnstn <jjohnstn>
Thu, 11 Dec 2008 22:48:38 +0000 (22:48 +0000)
        * libc/include/sys/time.h(gettimeofday): Change prototype so
        2nd parameter is void *, matching SUSV2.
        * libc/syscalls/sysgettod.c(gettimeofday): Ditto.

newlib/ChangeLog
newlib/libc/include/sys/time.h
newlib/libc/syscalls/sysgettod.c

index c422b28..feb1ef0 100644 (file)
@@ -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
index 9edd701..2634605 100644 (file)
@@ -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));
index 9f25b05..af6d8ab 100644 (file)
@@ -7,7 +7,7 @@
 int
 _DEFUN (gettimeofday, (ptimeval, ptimezone),
      struct timeval *ptimeval _AND
-     struct timezone *ptimezone)
+     void *ptimezone)
 {
   return _gettimeofday_r (_REENT, ptimeval, ptimezone);
 }