Skip to content

Commit 10edbbb

Browse files
committed
uv: upgrade to c468e2a
1 parent 7335a42 commit 10edbbb

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

deps/uv/src/unix/linux.c

+9-9
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ int uv_fs_event_init(uv_loop_t* loop,
158158
const char* filename,
159159
uv_fs_event_cb cb,
160160
int flags) {
161-
int flags;
161+
int events;
162162
int fd;
163163

164164
/* We don't support any flags yet. */
@@ -174,15 +174,15 @@ int uv_fs_event_init(uv_loop_t* loop,
174174
return -1;
175175
}
176176

177-
flags = IN_ATTRIB
178-
| IN_CREATE
179-
| IN_MODIFY
180-
| IN_DELETE
181-
| IN_DELETE_SELF
182-
| IN_MOVED_FROM
183-
| IN_MOVED_TO;
177+
events = IN_ATTRIB
178+
| IN_CREATE
179+
| IN_MODIFY
180+
| IN_DELETE
181+
| IN_DELETE_SELF
182+
| IN_MOVED_FROM
183+
| IN_MOVED_TO;
184184

185-
if (inotify_add_watch(fd, filename, flags) == -1) {
185+
if (inotify_add_watch(fd, filename, events) == -1) {
186186
uv__set_sys_error(loop, errno);
187187
uv__close(fd);
188188
return -1;

deps/uv/test/test-fs.c

+5-3
Original file line numberDiff line numberDiff line change
@@ -1435,7 +1435,7 @@ TEST_IMPL(fs_file_open_append) {
14351435
ASSERT(close_req.result != -1);
14361436
uv_fs_req_cleanup(&close_req);
14371437

1438-
r = uv_fs_open(loop, &open_req1, "test_file", _O_RDWR | O_APPEND, 0, NULL);
1438+
r = uv_fs_open(loop, &open_req1, "test_file", O_RDWR | O_APPEND, 0, NULL);
14391439
ASSERT(r != -1);
14401440
ASSERT(open_req1.result != -1);
14411441
uv_fs_req_cleanup(&open_req1);
@@ -1461,7 +1461,9 @@ TEST_IMPL(fs_file_open_append) {
14611461
printf("read = %d\n", r);
14621462
ASSERT(r == 26);
14631463
ASSERT(read_req.result == 26);
1464-
ASSERT(memcmp(buf, "test-buffer\n\0test-buffer\n\0", sizeof(buf)) == 0);
1464+
ASSERT(memcmp(buf,
1465+
"test-buffer\n\0test-buffer\n\0",
1466+
sizeof("test-buffer\n\0test-buffer\n\0") - 1) == 0);
14651467
uv_fs_req_cleanup(&read_req);
14661468

14671469
r = uv_fs_close(loop, &close_req, open_req1.result, NULL);
@@ -1473,4 +1475,4 @@ TEST_IMPL(fs_file_open_append) {
14731475
unlink("test_file");
14741476

14751477
return 0;
1476-
}
1478+
}

0 commit comments

Comments
 (0)