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;
}

View File

@@ -55,7 +55,7 @@ int BUFSIZE = 32768;
int QUEUE_SIZE = 500;
char DOMAIN[128] = "http://localhost/";
int time_seed;
unsigned int time_seed;
const char *symbols = "abcdefghijklmnopqrstuvwxyz0123456789";
struct thread_arguments