Skip to content

Commit 77f68b1

Browse files
anchaoxiaoxiang781216
authored andcommitted
fs/epoll: fix visual studio Compiler Error C2059
D:\archer\code\nuttx\fs\vfs\fs_epoll.c(456,15): error C2059: syntax error : '{' Compiler error C2059: The token caused a syntax error. Reference: https://learn.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/compiler-error-c2059?view=msvc-170 Signed-off-by: chao an <anchao@xiaomi.com>
1 parent 4a8cd8c commit 77f68b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/vfs/fs_epoll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ int epoll_ctl(int epfd, int op, int fd, FAR struct epoll_event *ev)
453453
eph->size += eph->size;
454454
}
455455

456-
epn = list_remove_head_type(&eph->free, epoll_node_t, node);
456+
epn = container_of(list_remove_head(&eph->free), epoll_node_t, node);
457457
epn->data = ev->data;
458458
epn->pfd.events = ev->events;
459459
epn->pfd.fd = fd;

0 commit comments

Comments
 (0)