diff --git a/fiche.c b/fiche.c index 860438d..1835b2c 100755 --- a/fiche.c +++ b/fiche.c @@ -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; } diff --git a/fiche.h b/fiche.h index 0eecdd4..cc8c554 100644 --- a/fiche.h +++ b/fiche.h @@ -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