aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormutantturkey <mutantturke@gmail.com>2012-08-02 22:08:22 -0400
committermutantturkey <mutantturke@gmail.com>2012-08-02 22:08:22 -0400
commit0e23ba36c238bc82fa41c9aa43897c47ff0d6a3f (patch)
treee0c304d6bc358905e6bafe93071b4d0e6dea40e6
parent1cbe79e9c7c60e334dec947754a93526ab752d67 (diff)
updating exit to be posix compliant
-rw-r--r--fly-tools/mask/main.c10
1 files changed, 5 insertions, 5 deletions
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");