Skip to content

Commit

Permalink
fix unsigned short in epoll.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
yedongfu committed Feb 28, 2019
1 parent adfd8ab commit a45daa8
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';
}
short unsigned short = 80;
unsigned short = 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 a45daa8

Please sign in to comment.