posix: clock: make tz non-const in gettimeofday

This `tz` field is not const in the spec.

Signed-off-by: Christopher Friedt <cfriedt@fb.com>
This commit is contained in:
Christopher Friedt 2022-09-02 07:17:48 -04:00 committed by Christopher Friedt
parent 8563744997
commit a5ee862ff0
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ struct timeval {
extern "C" {
#endif
int gettimeofday(struct timeval *tv, const void *tz);
int gettimeofday(struct timeval *tv, void *tz);
#ifdef __cplusplus
}

View File

@ -111,7 +111,7 @@ int clock_settime(clockid_t clock_id, const struct timespec *tp)
*
* See IEEE 1003.1
*/
int gettimeofday(struct timeval *tv, const void *tz)
int gettimeofday(struct timeval *tv, void *tz)
{
struct timespec ts;
int res;