]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-top-half/musl/src/linux/adjtime.c
Update to musl 1.1.24.
[wasi-libc.git] / libc-top-half / musl / src / linux / adjtime.c
index fa8af9f021773f575989fb34b872699434cfe4cf..5a707f2f217e829127247301896883667f487b5a 100644 (file)
@@ -15,7 +15,7 @@ int adjtime(const struct timeval *in, struct timeval *out)
                tx.offset = in->tv_sec*1000000 + in->tv_usec;
                tx.modes = ADJ_OFFSET_SINGLESHOT;
        }
-       if (syscall(SYS_adjtimex, &tx) < 0) return -1;
+       if (adjtimex(&tx) < 0) return -1;
        if (out) {
                out->tv_sec = tx.offset / 1000000;
                if ((out->tv_usec = tx.offset % 1000000) < 0) {