diff options
author | John Hawthorn <jhawthor@uvic.ca> | 2008-06-25 13:00:15 -0700 |
---|---|---|
committer | John Hawthorn <jhawthor@uvic.ca> | 2008-06-25 13:00:15 -0700 |
commit | 665c97078cfa687273e89c8b969d08f5290bcc01 (patch) | |
tree | 65e274ede4fbab3c3248cac36787cf666997965c | |
parent | 88da9aa578b2fd73f6d3be48e590038e64a1266a (diff) | |
download | mirror-meh-665c97078cfa687273e89c8b969d08f5290bcc01.tar.gz mirror-meh-665c97078cfa687273e89c8b969d08f5290bcc01.tar.bz2 mirror-meh-665c97078cfa687273e89c8b969d08f5290bcc01.zip |
cleanup
-rw-r--r-- | src/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |