diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/settimeofday.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/settimeofday.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/settimeofday.c b/sysdeps/unix/sysv/linux/settimeofday.c index 4235dc8..c74aaf2 100644 --- a/sysdeps/unix/sysv/linux/settimeofday.c +++ b/sysdeps/unix/sysv/linux/settimeofday.c @@ -1,5 +1,5 @@ /* settimeofday -- set system time - Linux version supporting 64 bit time. - Copyright (C) 2020-2024 Free Software Foundation, Inc. + Copyright (C) 2020-2025 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -26,9 +26,9 @@ int __settimeofday64 (const struct __timeval64 *tv, const struct timezone *tz) { /* Backwards compatibility for setting the UTC offset. */ - if (__glibc_unlikely (tz != 0)) + if (__glibc_unlikely (tz != NULL)) { - if (tv != 0) + if (tv != NULL) { __set_errno (EINVAL); return -1; |