summaryrefslogtreecommitdiff
path: root/src/ivysocket.c
diff options
context:
space:
mode:
authorfcolin2005-07-26 14:05:44 +0000
committerfcolin2005-07-26 14:05:44 +0000
commiteadd80325fe2f74a0eedf88b68cc43b2bcb0c915 (patch)
tree6015230737ae5482c5b8dfc048aede402b645008 /src/ivysocket.c
parentfb6aa032cf84f543234534cd2c24102eb730bbc4 (diff)
downloadivy-c-eadd80325fe2f74a0eedf88b68cc43b2bcb0c915.zip
ivy-c-eadd80325fe2f74a0eedf88b68cc43b2bcb0c915.tar.gz
ivy-c-eadd80325fe2f74a0eedf88b68cc43b2bcb0c915.tar.bz2
ivy-c-eadd80325fe2f74a0eedf88b68cc43b2bcb0c915.tar.xz
compile Windows
Diffstat (limited to 'src/ivysocket.c')
-rw-r--r--src/ivysocket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ivysocket.c b/src/ivysocket.c
index 9191368..396ad41 100644
--- a/src/ivysocket.c
+++ b/src/ivysocket.c
@@ -207,14 +207,14 @@ static Client CreateClient(int handle)
{
fprintf(stderr,"NOK Memory Alloc Error\n");
close ( handle );
- exit(0);
+ exit(-1);
}
client->in_buffer_size = BUFFER_SIZE;
client->in_buffer = malloc( client->in_buffer_size );
if (!client->in_buffer )
{
fprintf(stderr,"HandleSocket Buffer Memory Alloc Error\n");
- exit(0);
+ exit(-1);
}
client->in_ptr = client->in_buffer;
client->out_buffer_size = BUFFER_SIZE;
@@ -222,7 +222,7 @@ static Client CreateClient(int handle)
if (!client->in_buffer )
{
fprintf(stderr,"HandleSocket Buffer Memory Alloc Error\n");
- exit(0);
+ exit(-1);
}
client->out_ptr = client->out_buffer;
client->fd = handle;