Fix warnings.

This commit is contained in:
Ben Laurie
2011-12-02 14:39:41 +00:00
parent 9f2b453338
commit 825e1a7c56
5 changed files with 7 additions and 8 deletions

View File

@@ -238,11 +238,10 @@ int init_client(int *sock, char *host, int port, int type)
{
unsigned char ip[4];
memset(ip, '\0', sizeof ip);
if (!host_ip(host,&(ip[0])))
{
return(0);
}
return(init_client_ip(sock,ip,port,type));
return 0;
return init_client_ip(sock,ip,port,type);
}
static int init_client_ip(int *sock, unsigned char ip[4], int port, int type)