From 0e23ba36c238bc82fa41c9aa43897c47ff0d6a3f Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Thu, 2 Aug 2012 22:08:22 -0400 Subject: updating exit to be posix compliant --- fly-tools/mask/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fly-tools') diff --git a/fly-tools/mask/main.c b/fly-tools/mask/main.c index 3885175..804f07f 100644 --- a/fly-tools/mask/main.c +++ b/fly-tools/mask/main.c @@ -11,7 +11,7 @@ #include "thpool.h" -#define ThrowWandException(wand) { char *description; ExceptionType severity; description=MagickGetException(wand,&severity); (void) fprintf(stderr,"%s %s %lu %s\n",GetMagickModule(),description); description=(char *) MagickRelinquishMemory(description); exit(-1); } +#define ThrowWandException(wand) { char *description; ExceptionType severity; description=MagickGetException(wand,&severity); (void) fprintf(stderr,"%s %s %lu %s\n",GetMagickModule(),description); description=(char *) MagickRelinquishMemory(description); exit(EXIT_FAILURE); } MagickWand *background; char *output_folder = NULL; @@ -63,7 +63,7 @@ int main( int argc, char **argv){ break; case 'h': puts(usage); - exit(1); + exit(EXIT_SUCCESS); break; default: break; @@ -71,7 +71,7 @@ int main( int argc, char **argv){ if( background_file == NULL || image_list == NULL || output_folder == NULL ) { puts(usage); - exit(1); + exit(EXIT_FAILURE); } MagickWandGenesis(); @@ -79,7 +79,7 @@ int main( int argc, char **argv){ if(MagickReadImage(background, background_file) == MagickFalse) { puts("background could not load error"); - exit(0); + exit(EXIT_FAILURE); } thpool_t* threadpool; @@ -101,7 +101,7 @@ int main( int argc, char **argv){ fclose ( f ); } else { - exit(0); + exit(EXIT_FAILURE); } puts("Will kill threadpool"); -- cgit v1.2.3