diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-01-07 02:41:27 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-01-07 02:41:27 -0500 |
commit | 2750337379d1314026d174cd5b49e3f8ea590637 (patch) | |
tree | 85e53ae7f42a3ff4c90f53ff606ffabe12a347b7 | |
parent | dbe221ecff2dd8a3d4d005d80b81064e156f8f4a (diff) | |
download | musl-2750337379d1314026d174cd5b49e3f8ea590637.tar.gz musl-2750337379d1314026d174cd5b49e3f8ea590637.tar.bz2 musl-2750337379d1314026d174cd5b49e3f8ea590637.tar.xz musl-2750337379d1314026d174cd5b49e3f8ea590637.zip |
fix incorrect type for wd argument of inotify_rm_watch
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.
-rw-r--r-- | include/sys/inotify.h | 2 | ||||
-rw-r--r-- | src/linux/inotify.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/sys/inotify.h b/include/sys/inotify.h index a5bf96a6..46638cac 100644 --- a/include/sys/inotify.h +++ b/include/sys/inotify.h @@ -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 } diff --git a/src/linux/inotify.c b/src/linux/inotify.c index d3b4fa0b..a417c891 100644 --- a/src/linux/inotify.c +++ b/src/linux/inotify.c @@ -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); } |