From 665c97078cfa687273e89c8b969d08f5290bcc01 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Wed, 25 Jun 2008 13:00:15 -0700 Subject: cleanup --- src/main.c | 8 ++++---- 1 file 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; -- cgit v1.2.3