aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Hawthorn <jhawthor@uvic.ca>2008-06-25 13:00:15 -0700
committerJohn Hawthorn <jhawthor@uvic.ca>2008-06-25 13:00:15 -0700
commit665c97078cfa687273e89c8b969d08f5290bcc01 (patch)
tree65e274ede4fbab3c3248cac36787cf666997965c
parent88da9aa578b2fd73f6d3be48e590038e64a1266a (diff)
downloadmirror-meh-665c97078cfa687273e89c8b969d08f5290bcc01.tar.gz
mirror-meh-665c97078cfa687273e89c8b969d08f5290bcc01.tar.bz2
mirror-meh-665c97078cfa687273e89c8b969d08f5290bcc01.zip
cleanup
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 61a806d..016aff1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -31,7 +31,7 @@ void usage(){
printf("USAGE: meh [FILE1 [FILE2 [...]]]\n");
printf(" meh -list : treat stdin as list of files\n");
printf(" meh -ctl : display files as they are received on stdin\n");
- exit(1);
+ exit(EXIT_FAILURE);
}
struct image *imgopen(FILE *f){
@@ -155,7 +155,7 @@ void run(){
filename = direction();
if(filename == firstimg){
fprintf(stderr, "No valid images to view\n");
- exit(1);
+ exit(EXIT_FAILURE);
}
}
img->buf = NULL;
@@ -188,12 +188,12 @@ int main(int argc, char *argv[]){
if(argc != 2)
usage();
printf("not implemented\n");
- exit(1);
+ exit(EXIT_FAILURE);
}else if(!strcmp(argv[1], "-list")){
if(argc != 2)
usage();
printf("not implemented\n");
- exit(1);
+ exit(EXIT_FAILURE);
}else{
images = &argv[1];
imageslen = argc-1;