diff --git a/server.c b/server.c index ee43783..fee324d 100644 --- a/server.c +++ b/server.c @@ -6,7 +6,6 @@ * @brief Server for OSUE exercise 1B `Battleship'. */ -// IO, C standard library, POSIX API, data types: #include #include #include @@ -15,15 +14,12 @@ #include #include -// Assertions, errors, signals: #include #include #include -// Time: #include -// Sockets, TCP, ... : #include #include #include @@ -31,11 +27,11 @@ #include "common.h" -static const char *port = DEFAULT_PORT; // the port to bind to +static const char *port = DEFAULT_PORT; -static struct addrinfo *ai = NULL; // stores address information -static int sockfd = -1; // socket file descriptor -static int connfd = -1; // connection file descriptor +static struct addrinfo *ai = NULL; +static int sockfd = -1; +static int connfd = -1; static char* pname; struct Ship {