aceld / aceld/libevent

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

Open
#9 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
900
Forks
201
PR merge metrics
No merged PRs in 30d

Description

服务端代码第66行
```c
my_events = (epoll_event *)malloc(sizeof(struct epoll_event) * EPOLL_MAX_NUM);
````
应改为
```c
my_events = (struct epoll_event *)malloc(sizeof(struct epoll_event) * EPOLL_MAX_NUM);
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.