Fixed accidental removal of line
This commit is contained in:
parent
671ea5dda0
commit
de83bc9f21
2
TCP.c
2
TCP.c
|
@ -11,6 +11,8 @@ int open_tcp(char* ip, int port) {
|
||||||
struct hostent *server;
|
struct hostent *server;
|
||||||
struct sockaddr_in serv_addr;
|
struct sockaddr_in serv_addr;
|
||||||
|
|
||||||
|
server = gethostbyname(ip);
|
||||||
|
|
||||||
if (server == NULL) {
|
if (server == NULL) {
|
||||||
perror("Error resolving host");
|
perror("Error resolving host");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
Loading…
Reference in New Issue