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:
parent
8563744997
commit
a5ee862ff0
@ -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
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user