Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Lzww0608 opened this issue Mar 18, 2025 · 1 comment
Open

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

Lzww0608 opened this issue Mar 18, 2025 · 1 comment

Comments

@Lzww0608
Copy link

服务端代码第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
Copy link
Author

代码纠正

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant