baum

changeset 42:233ac9bea4f1

switched exit code 127 to 126 (because shell returns 127 if command not found)
author meillo@marmaro.de
date Sat, 01 Mar 2008 20:41:35 +0100
parents 1ad3d7305e5d
children c7dca4a1dc37
files baum.1 baum.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/baum.1	Sat Mar 01 20:35:00 2008 +0100
     1.2 +++ b/baum.1	Sat Mar 01 20:41:35 2008 +0100
     1.3 @@ -25,7 +25,7 @@
     1.4  
     1.5  .TP
     1.6  .BI \-v
     1.7 -Verbose output
     1.8 +Verbose output (All verbose output goes to stderr)
     1.9  
    1.10  .TP
    1.11  .BI \-\-help
    1.12 @@ -94,7 +94,7 @@
    1.13  node name too long, or no value given
    1.14  
    1.15  .TP
    1.16 -.BI 127
    1.17 +.BI 126
    1.18  invalid command line options
    1.19  
    1.20  
     2.1 --- a/baum.c	Sat Mar 01 20:35:00 2008 +0100
     2.2 +++ b/baum.c	Sat Mar 01 20:41:35 2008 +0100
     2.3 @@ -254,7 +254,7 @@
     2.4  			*/
     2.5  		} else {
     2.6  			fprintf(stderr, "unknown option: %s\n", argv[0]);
     2.7 -			exit(127);
     2.8 +			exit(126);
     2.9  		}
    2.10  	}
    2.11