fixed code that caused warnings - fiche - A pastebin adjusted for gopher use
(HTM) git clone git://vernunftzentrum.de/fiche.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit c10d19e9d941373121cb6b420f0e57ee9e791756
(DIR) parent 249413374d23479c3d485a565736639878c127da
(HTM) Author: solusipse <solus1ps3@gmail.com>
Date: Wed, 30 Oct 2013 00:39:51 +0100
fixed code that caused warnings
Diffstat:
fiche.c | 3 +++
fiche.h | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
---
(DIR) 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;
}
(DIR) 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