Skip to content

Commit

Permalink
Hotfix for epool example.(yedf2#63)
Browse files Browse the repository at this point in the history
修改port变量丢失导致编译失败 yedf2#63
  • Loading branch information
ranqiyu authored and jovany-wang committed Apr 24, 2019
1 parent 4c949de commit 0546d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raw-examples/epoll.cc
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ int main(int argc, const char *argv[]) {
for (int i = 0; i < 1048570; i++) {
httpRes += '\0';
}
unsigned short = 80;
unsigned short port = 80;
int epollfd = epoll_create(1);
exit_if(epollfd < 0, "epoll_create failed");
int listenfd = socket(AF_INET, SOCK_STREAM, 0);
Expand Down

0 comments on commit 0546d23

Please sign in to comment.