From c10d19e9d941373121cb6b420f0e57ee9e791756 Mon Sep 17 00:00:00 2001 From: solusipse Date: Wed, 30 Oct 2013 00:39:51 +0100 Subject: [PATCH] fixed code that caused warnings --- fiche.c | 3 +++ fiche.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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