diff --git a/libc/src/time/gettimeofday.cpp b/libc/src/time/gettimeofday.cpp --- a/libc/src/time/gettimeofday.cpp +++ b/libc/src/time/gettimeofday.cpp @@ -20,11 +20,10 @@ (struct timeval * tv, [[maybe_unused]] void *unused)) { if (tv == nullptr) return 0; - clockid_t clockid = CLOCK_REALTIME; struct timespec tp; - long ret_val = - __llvm_libc::syscall_impl(SYS_clock_gettime, static_cast(clockid), - reinterpret_cast(&tp)); + long ret_val = __llvm_libc::syscall_impl(SYS_clock_gettime, + static_cast(CLOCK_REALTIME), + reinterpret_cast(&tp)); // A negative return value indicates an error with the magnitude of the // value being the error code. if (ret_val < 0) {