Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: unbreak linux build, broken in 1997e10
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Nov 5, 2011
1 parent 1997e10 commit cee56c9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/unix/linux.c
Expand Up @@ -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. */
Expand All @@ -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;
Expand Down

0 comments on commit cee56c9

Please sign in to comment.