fix incorrect type for wd argument of inotify_rm_watch
authorRich Felker <dalias@aerifal.cx>
Tue, 7 Jan 2014 07:41:27 +0000 (02:41 -0500)
committerRich Felker <dalias@aerifal.cx>
Tue, 7 Jan 2014 07:41:27 +0000 (02:41 -0500)
this was wrong since the original commit adding inotify, and I don't
see any explanation for it. not even the man pages have it wrong. it
was most likely a copy-and-paste error.

include/sys/inotify.h
src/linux/inotify.c

index a5bf96a61f42be550d35cf2d3c0fbf96edfc0250..46638cac9d4b4012deba5f526f238f92123bd19f 100644 (file)
@@ -48,7 +48,7 @@ struct inotify_event {
 int inotify_init(void);
 int inotify_init1(int);
 int inotify_add_watch(int, const char *, uint32_t);
-int inotify_rm_watch(int, uint32_t);
+int inotify_rm_watch(int, int);
 
 #ifdef __cplusplus
 }
index d3b4fa0be2196e600142aef1b0c731e42ec17c1e..a417c891fdf73603363b3ef7c0a2513881d4967b 100644 (file)
@@ -15,7 +15,7 @@ int inotify_add_watch(int fd, const char *pathname, uint32_t mask)
        return syscall(SYS_inotify_add_watch, fd, pathname, mask);
 }
 
-int inotify_rm_watch(int fd, uint32_t wd)
+int inotify_rm_watch(int fd, int wd)
 {
        return syscall(SYS_inotify_rm_watch, fd, wd);
 }