未验证 提交 4eeeeb75 编写于 作者: H Hui Li 提交者: GitHub

Merge pull request #8460 from aserputov/issue-8451

Fixed: gramma, lines 95 & 259
......@@ -92,7 +92,7 @@ static void null_event(ep_t *ep, struct epoll_event *ev, fde_t *client);
fprintf(stderr, "" fmt "\n", ##__VA_ARGS__); \
} \
fprintf(stderr, "usage:\n"); \
fprintf(stderr, " %s -l <port> : specify listenning port\n", arg0); \
fprintf(stderr, " %s -l <port> : specify listening port\n", arg0); \
} while (0)
int main(int argc, char *argv[]) {
......@@ -256,7 +256,7 @@ static int open_listen(unsigned short port) {
E("getsockname() failed");
}
A(len == sizeof(si), "internal logic error");
D("listenning at: %d", ntohs(si.sin_port));
D("listening at: %d", ntohs(si.sin_port));
return skt;
} while (0);
close(skt);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册