fixed code that caused warnings

This commit is contained in:
solusipse
2013-10-30 00:39:51 +01:00
parent 249413374d
commit c10d19e9d9
2 changed files with 4 additions and 1 deletions

View File

@@ -239,7 +239,10 @@ int create_socket()
{
int lsocket = socket(AF_INET, SOCK_STREAM, 0);
if (lsocket < 0)
{
error("ERROR: Couldn't open socket");
return 0;
}
else return lsocket;
}