X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Funistd%2Ftruncate.c;h=3edacd12dd922f6c43ade722a7ed1e842ad787f6;hb=5788d97221434903407fec3f0e48b2ca19643a30;hp=322349d2aeebe0e38a512334f3f51f710d7c1fc8;hpb=cfe373146d232d7c89a60920f77b9451bcfee96b;p=musl diff --git a/src/unistd/truncate.c b/src/unistd/truncate.c index 322349d2..3edacd12 100644 --- a/src/unistd/truncate.c +++ b/src/unistd/truncate.c @@ -4,7 +4,7 @@ int truncate(const char *path, off_t length) { - return syscall3(__NR_truncate, (long)path, SYSCALL_LL(length)); + return syscall(__NR_truncate, path, __SYSCALL_LL(length)); } LFS64(truncate);