: nply/fiche2

commit c10d19e9d941373121cb6b420f0e57ee9e791756
parent 249413374d23479c3d485a565736639878c127da
Author: solusipse <solus1ps3@gmail.com>
Date: Wed, 30 Oct 2013 00:39:51 +0100

fixed code that caused warnings
2 files changed, 4 insertions(+), 1 deletion(-)
M
fiche.c
|
3
+++
M
fiche.h
|
2
+-
diff --git 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
@@ -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