Commit 2082828a authored by Haruki NAOI's avatar Haruki NAOI

fix compilation.

parent 564db1a7
......@@ -215,7 +215,7 @@ void init_server_eventfd(int *watch_fd_list, int client_num, char *path)
if ((conn_socket = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
{
perror("socket (init_server_eventfd)\n");
exit_fun("init_server_eventfd fatal: socket err");
exit(1);
}
addr.sun_family = AF_UNIX;
......@@ -226,7 +226,7 @@ void init_server_eventfd(int *watch_fd_list, int client_num, char *path)
if (bind(conn_socket, (const struct sockaddr *)&addr, sizeof(struct sockaddr_un)) == -1)
{
perror("bind (init_server_eventfd)\n");
exit_fun("init_server_eventfd fatal: bind err");
exit(1);
}
printf("bind completed (init_server_eventfd) \n");
......@@ -235,7 +235,7 @@ void init_server_eventfd(int *watch_fd_list, int client_num, char *path)
if (listen(conn_socket, 16) == -1)
{
perror("listen (init_server_eventfd)");
exit_fun("init_server_eventfd fatal: listen err");
exit(1);
}
printf("init_server_eventfd : now listening\n");
......@@ -245,7 +245,7 @@ void init_server_eventfd(int *watch_fd_list, int client_num, char *path)
if ((fd = accept(conn_socket, NULL, NULL)) == -1)
{
perror("accept (init_server_eventfd)\n");
exit_fun("init_server_eventfd fatal: accept err");
exit(1);
}
printf("accept completed (init_server_eventfd)\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment