Permalink
Browse files

unix: unbreak linux build, broken in 1997e10

  • Loading branch information...
1 parent 1997e10 commit cee56c96f84aaaf629bdedc369bf34009a0dc291 @bnoordhuis bnoordhuis committed Nov 5, 2011
Showing with 9 additions and 9 deletions.
  1. +9 −9 src/unix/linux.c
View
@@ -158,7 +158,7 @@ int uv_fs_event_init(uv_loop_t* loop,
const char* filename,
uv_fs_event_cb cb,
int flags) {
- int flags;
+ int events;
int fd;
/* We don't support any flags yet. */
@@ -174,15 +174,15 @@ int uv_fs_event_init(uv_loop_t* loop,
return -1;
}
- flags = IN_ATTRIB
- | IN_CREATE
- | IN_MODIFY
- | IN_DELETE
- | IN_DELETE_SELF
- | IN_MOVED_FROM
- | IN_MOVED_TO;
+ events = IN_ATTRIB
+ | IN_CREATE
+ | IN_MODIFY
+ | IN_DELETE
+ | IN_DELETE_SELF
+ | IN_MOVED_FROM
+ | IN_MOVED_TO;
- if (inotify_add_watch(fd, filename, flags) == -1) {
+ if (inotify_add_watch(fd, filename, events) == -1) {
uv__set_sys_error(loop, errno);
uv__close(fd);
return -1;

0 comments on commit cee56c9

Please sign in to comment.