diff --git a/src/port.c b/src/port.c index 8ea17bc..acbbb2f 100644 --- a/src/port.c +++ b/src/port.c @@ -2,12 +2,12 @@ #include #include -#include "epoll-socket.h" #include "epoll.h" #include "error.h" #include "poll-group.h" #include "port.h" #include "queue.h" +#include "sock.h" #include "tree.h" #include "util.h" #include "win.h" diff --git a/src/port.h b/src/port.h index ceb759d..ddbbf50 100644 --- a/src/port.h +++ b/src/port.h @@ -2,13 +2,13 @@ #define EPOLL_PORT_DATA_H_ #include "afd.h" -#include "epoll-socket.h" #include "epoll.h" #include "internal.h" #include "poll-group.h" #include "queue.h" #include "rb.h" #include "reflock-tree.h" +#include "sock.h" #include "tree.h" #include "util.h" #include "win.h" diff --git a/src/epoll-socket.c b/src/sock.c similarity index 99% rename from src/epoll-socket.c rename to src/sock.c index 516c4ab..c6dba38 100644 --- a/src/epoll-socket.c +++ b/src/sock.c @@ -4,11 +4,11 @@ #include #include "afd.h" -#include "epoll-socket.h" #include "epoll.h" #include "error.h" #include "poll-group.h" #include "port.h" +#include "sock.h" #define _EP_EVENT_MASK 0xffff diff --git a/src/epoll-socket.h b/src/sock.h similarity index 93% rename from src/epoll-socket.h rename to src/sock.h index ac86f57..514a1e4 100644 --- a/src/epoll-socket.h +++ b/src/sock.h @@ -1,5 +1,5 @@ -#ifndef EPOLL_SOCK_DATA_H_ -#define EPOLL_SOCK_DATA_H_ +#ifndef EPOLL_SOCK_H_ +#define EPOLL_SOCK_H_ #include @@ -36,4 +36,4 @@ EPOLL_INTERNAL int ep_sock_feed_event(ep_port_t* port_info, ep_sock_t* sock_info, struct epoll_event* ev); -#endif /* EPOLL_SOCK_DATA_H_ */ +#endif /* EPOLL_SOCK_H_ */