From 2f2c76e1c8d8c4431c6395afeee420b71a4d772a Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Mon, 19 Aug 2019 13:51:25 -0400 Subject: Make second argument of gettimeofday as 'void *' Also make the public prototype of gettimeofday declare its second argument with type "void *" unconditionally, consistent with POSIX. It is also consistent with POSIX. Checked on x86_64-linux-gnu, i686-linux-gnu, powerpc64le-linux-gnu, powerpc64-linux-gnu, powerpc-linux-gnu, and aarch64-linux-gnu. Co-authored-by: Adhemerval Zanella Reviewed-by: Lukasz Majewski --- include/sys/time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/sys/time.h b/include/sys/time.h index 2bf4297e76..a461295c6a 100644 --- a/include/sys/time.h +++ b/include/sys/time.h @@ -21,7 +21,7 @@ # ifndef _ISOMAC extern int __gettimeofday (struct timeval *__tv, - struct timezone *__tz); + void *__tz); extern int __settimezone (const struct timezone *__tz) attribute_hidden; extern int __adjtime (const struct timeval *__delta, -- cgit v1.2.3-70-g09d2