From 0be2bc94e7ecd7b5555d114a54fc3a48b405ebbd Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 6 Jul 2007 16:56:30 +0000 Subject: 2007-07-06 Jeff Johnston * 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. --- newlib/libc/sys/rdos/gettod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/sys/rdos/gettod.c') diff --git a/newlib/libc/sys/rdos/gettod.c b/newlib/libc/sys/rdos/gettod.c index b180150..66380e7 100644 --- a/newlib/libc/sys/rdos/gettod.c +++ b/newlib/libc/sys/rdos/gettod.c @@ -8,7 +8,7 @@ struct timeval; struct timezone; -int gettimeofday(struct timeval *ptimeval, struct timezone *ptimezone) +int gettimeofday(struct timeval *ptimeval, void *ptimezone) { errno = ENOSYS; return -1; -- cgit v1.1