From f72244ec4abe39055e7c99e8f64d82c612bda9a5 Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Thu, 5 Jul 2012 17:31:31 -0400 Subject: clean up mask generator --- fly-tools/mask/main.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'fly-tools/mask/main.c') diff --git a/fly-tools/mask/main.c b/fly-tools/mask/main.c index 5f7744f..3885175 100644 --- a/fly-tools/mask/main.c +++ b/fly-tools/mask/main.c @@ -1,14 +1,14 @@ // Calvin Morrison Copyright 2012 - #include #include #include #include #include -#include +#include #include #include + #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); } @@ -47,7 +47,6 @@ int main( int argc, char **argv){ char *background_file = NULL; char *image_list = NULL; int c; - opterr = 0; while ((c = getopt (argc, argv, "b:i:o:hv")) != -1) switch (c) { @@ -74,19 +73,17 @@ int main( int argc, char **argv){ puts(usage); exit(1); } - MagickBooleanType status; MagickWandGenesis(); background = NewMagickWand(); - status=MagickReadImage(background, background_file); - if (status == MagickFalse) { + if(MagickReadImage(background, background_file) == MagickFalse) { puts("background could not load error"); exit(0); } - thpool_t* threadpool; /* make a new thread pool structure */ - threadpool=thpool_init(4); /* initialise it to 4 number of threads */ + thpool_t* threadpool; + threadpool=thpool_init(4); char filename[256]; char *temp; -- cgit v1.2.3