diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/gettimeofday.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/gettimeofday.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/gettimeofday.c b/sysdeps/unix/sysv/linux/gettimeofday.c index 5ca8916..e2a2155 100644 --- a/sysdeps/unix/sysv/linux/gettimeofday.c +++ b/sysdeps/unix/sysv/linux/gettimeofday.c @@ -1,5 +1,5 @@ /* gettimeofday - set time. Linux version. - 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 @@ -31,7 +31,7 @@ static int __gettimeofday_syscall (struct timeval *restrict tv, void *restrict tz) { - if (__glibc_unlikely (tz != 0)) + if (__glibc_unlikely (tz != NULL)) memset (tz, 0, sizeof *tz); return INLINE_SYSCALL_CALL (gettimeofday, tv, tz); } @@ -47,7 +47,7 @@ libc_ifunc (__gettimeofday, int __gettimeofday (struct timeval *restrict tv, void *restrict tz) { - if (__glibc_unlikely (tz != 0)) + if (__glibc_unlikely (tz != NULL)) memset (tz, 0, sizeof *tz); return INLINE_VSYSCALL (gettimeofday, 2, tv, tz); |