fix inconsistent signature of __libc_start_main
[musl] / src / unistd / write.c
index a8284b3..8fd5bc5 100644 (file)
@@ -1,12 +1,7 @@
 #include <unistd.h>
 #include "syscall.h"
-#include "libc.h"
 
 ssize_t write(int fd, const void *buf, size_t count)
 {
-       int r;
-       CANCELPT_BEGIN;
-       r = syscall(SYS_write, fd, buf, count);
-       CANCELPT_END;
-       return r;
+       return syscall_cp(SYS_write, fd, buf, count);
 }