Introduction
Introduction Statistics Contact Development Disclaimer Help
fixed code that caused warnings - fiche - A pastebin adjusted for gopher use
git clone git://vernunftzentrum.de/fiche.git
Log
Files
Refs
LICENSE
---
commit c10d19e9d941373121cb6b420f0e57ee9e791756
parent 249413374d23479c3d485a565736639878c127da
Author: solusipse <[email protected]>
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(-)
---
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
You are viewing proxied material from vernunftzentrum.de. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.