OSDN Git Service

inotify_rm_watch: Change second argument to int
authorKevin Cernekee <cernekee@gmail.com>
Sun, 8 Apr 2012 18:42:59 +0000 (11:42 -0700)
committerMike Frysinger <vapier@gentoo.org>
Sun, 8 Apr 2012 20:03:26 +0000 (16:03 -0400)
2009-01-30  Ulrich Drepper  <drepper@redhat.com>

        [BZ #7040]
        * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of
        inotify_rm_watch should have type int.

This change allows us to copy inotify.h verbatim from glibc into uClibc.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
libc/sysdeps/linux/common/inotify.c
libc/sysdeps/linux/common/sys/inotify.h

index e35f043..e2f3836 100644 (file)
@@ -24,5 +24,5 @@ _syscall3(int, inotify_add_watch, int, fd, const char *, path, uint32_t, mask)
 #endif
 
 #ifdef __NR_inotify_rm_watch
-_syscall2(int, inotify_rm_watch, int, fd, uint32_t, wd)
+_syscall2(int, inotify_rm_watch, int, fd, int, wd)
 #endif
index dc4e19d..07be37d 100644 (file)
@@ -98,7 +98,7 @@ extern int inotify_add_watch (int __fd, const char *__name, uint32_t __mask)
   __THROW;
 
 /* Remove the watch specified by WD from the inotify instance FD.  */
-extern int inotify_rm_watch (int __fd, uint32_t __wd) __THROW;
+extern int inotify_rm_watch (int __fd, int __wd) __THROW;
 
 __END_DECLS