fixed code that caused warnings
This commit is contained in:
3
fiche.c
3
fiche.c
@@ -239,7 +239,10 @@ int create_socket()
|
|||||||
{
|
{
|
||||||
int lsocket = socket(AF_INET, SOCK_STREAM, 0);
|
int lsocket = socket(AF_INET, SOCK_STREAM, 0);
|
||||||
if (lsocket < 0)
|
if (lsocket < 0)
|
||||||
|
{
|
||||||
error("ERROR: Couldn't open socket");
|
error("ERROR: Couldn't open socket");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
else return lsocket;
|
else return lsocket;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
fiche.h
2
fiche.h
@@ -55,7 +55,7 @@ int BUFSIZE = 32768;
|
|||||||
int QUEUE_SIZE = 500;
|
int QUEUE_SIZE = 500;
|
||||||
char DOMAIN[128] = "http://localhost/";
|
char DOMAIN[128] = "http://localhost/";
|
||||||
|
|
||||||
int time_seed;
|
unsigned int time_seed;
|
||||||
const char *symbols = "abcdefghijklmnopqrstuvwxyz0123456789";
|
const char *symbols = "abcdefghijklmnopqrstuvwxyz0123456789";
|
||||||
|
|
||||||
struct thread_arguments
|
struct thread_arguments
|
||||||
|
|||||||
Reference in New Issue
Block a user