提交 423c4ded 编写于 作者: A Anatoliy Serputov

Fixed: gramma, lines 95 & 259

上级 2fd5aa30
...@@ -92,7 +92,7 @@ static void null_event(ep_t *ep, struct epoll_event *ev, fde_t *client); ...@@ -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, "" fmt "\n", ##__VA_ARGS__); \
} \ } \
fprintf(stderr, "usage:\n"); \ 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) } while (0)
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
...@@ -256,7 +256,7 @@ static int open_listen(unsigned short port) { ...@@ -256,7 +256,7 @@ static int open_listen(unsigned short port) {
E("getsockname() failed"); E("getsockname() failed");
} }
A(len == sizeof(si), "internal logic error"); 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; return skt;
} while (0); } while (0);
close(skt); close(skt);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册