global cleanup to use the new syscall interface
[musl] / src / linux / inotify_add_watch.c
index 9973f16..75f207d 100644 (file)
@@ -3,5 +3,5 @@
 
 int inotify_add_watch(int fd, const char *pathname, uint32_t mask)
 {
-       return syscall3(__NR_inotify_add_watch, fd, (long)pathname, mask);
+       return syscall(SYS_inotify_add_watch, fd, pathname, mask);
 }