From eadd80325fe2f74a0eedf88b68cc43b2bcb0c915 Mon Sep 17 00:00:00 2001 From: fcolin Date: Tue, 26 Jul 2005 14:05:44 +0000 Subject: compile Windows --- src/ivysocket.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ivysocket.c') 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; -- cgit v1.1