Remove comments from OSUE-Team

This commit is contained in:
Kranklyboy 2018-04-15 00:02:50 +02:00
parent 998a3c8c31
commit 2e5a0d9f78

View File

@ -6,7 +6,6 @@
* @brief Client for OSUE exercise 1B `Battleship'.
*/
// IO, C standard library, POSIX API, data types:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@ -15,30 +14,24 @@
#include <string.h>
#include <limits.h>
// Assertions, errors, signals:
#include <assert.h>
#include <errno.h>
#include <signal.h>
// Time:
#include <time.h>
// Sockets, TCP, ... :
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <fcntl.h>
// stuff shared by client and server:
#include "common.h"
// Static variables for things you might want to access from several functions:
static const char *port = DEFAULT_PORT; // the port to bind to
static const char *port = DEFAULT_PORT;
// Static variables for resources that should be freed before exiting:
static struct addrinfo *ai = NULL; // addrinfo struct
static struct addrinfo *ai = NULL;
static char *hostname = NULL;
static int sockfd = -1; // socket file descriptor
static int sockfd = -1;
static char* pname;
static int field[MAP_SIZE][MAP_SIZE];