diff options
Diffstat (limited to 'libc/misc/time/adjtime.c')
-rw-r--r-- | libc/misc/time/adjtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/time/adjtime.c b/libc/misc/time/adjtime.c index 12c1a2a40..2a9190e9b 100644 --- a/libc/misc/time/adjtime.c +++ b/libc/misc/time/adjtime.c @@ -24,7 +24,7 @@ adjtime(const struct timeval * itv, struct timeval * otv) tmp.tv_usec = itv->tv_usec % 1000000L; if (tmp.tv_sec > MAX_SEC || tmp.tv_sec < MIN_SEC) { - errno = EINVAL; + __set_errno(EINVAL); return -1; } tntx.offset = tmp.tv_usec + tmp.tv_sec * 1000000L; |