--- lbbs/src/net_server.c 2004/10/19 02:08:35 1.3 +++ lbbs/src/net_server.c 2004/10/20 07:46:32 1.5 @@ -17,14 +17,6 @@ #include "common.h" -//Global definition for sockets -int socket_server; -int socket_client; -char hostaddr_server[50]; -char hostaddr_client[50]; -int port_server; -int port_client; - int net_server (const char *hostaddr, unsigned int port) { @@ -47,7 +39,9 @@ net_server (const char *hostaddr, unsign if (bind (sock_server, (struct sockaddr *)&sin, sizeof(sin)) < 0) { - log_error ("Bind address failed\n"); + sprintf(temp, "Bind address %s:%u failed\n", + inet_ntoa(sin.sin_addr), ntohs(sin.sin_port)); + log_error (temp); exit (2); }