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>
This commit is contained in:
chao an 2023-02-08 16:56:16 +08:00 committed by Xiang Xiao
parent 4a8cd8ca0c
commit 77f68b121b

View File

@ -453,7 +453,7 @@ int epoll_ctl(int epfd, int op, int fd, FAR struct epoll_event *ev)
eph->size += eph->size;
}
epn = list_remove_head_type(&eph->free, epoll_node_t, node);
epn = container_of(list_remove_head(&eph->free), epoll_node_t, node);
epn->data = ev->data;
epn->pfd.events = ev->events;
epn->pfd.fd = fd;