diff --git a/connection.c b/connection.c --- a/connection.c +++ b/connection.c @@ -15,7 +15,9 @@ int connection (char *ip, unsigned short port) { struct hostent *hs; + struct sockaddr_in sock; + int sockfd; memset (&sock, 0, sizeof (sock)); @@ -47,7 +49,9 @@ int main (int argc, char **argv) { char buffer[1024]; + int sockfd; + int num; if (argc != 3) {