libevent icon indicating copy to clipboard operation
libevent copied to clipboard

26-简单的epoll服务器文件中代码有误

Open Lzww0608 opened this issue 9 months ago • 1 comments

服务端代码第66行

my_events = (epoll_event *)malloc(sizeof(struct epoll_event) * EPOLL_MAX_NUM);

应改为

my_events = (struct epoll_event *)malloc(sizeof(struct epoll_event) * EPOLL_MAX_NUM);

Lzww0608 avatar Mar 18 '25 11:03 Lzww0608

代码纠正

Lzww0608 avatar Mar 18 '25 11:03 Lzww0608