diff options
author | Frank.Willmore <frank.willmore@jelly.ad.hdfgroup.org> | 2016-10-25 14:53:44 (GMT) |
---|---|---|
committer | Frank.Willmore <frank.willmore@jelly.ad.hdfgroup.org> | 2016-10-25 14:53:44 (GMT) |
commit | 526bcc242d03a6fc4fd28d3a0f68cc31f4f2a850 (patch) | |
tree | be45f92823727f650b998a6a941918d43c998056 /test/tcheck_version.c | |
parent | b6bb7c123a02570a33f02257d738e50195dbeb3a (diff) | |
download | hdf5-526bcc242d03a6fc4fd28d3a0f68cc31f4f2a850.zip hdf5-526bcc242d03a6fc4fd28d3a0f68cc31f4f2a850.tar.gz hdf5-526bcc242d03a6fc4fd28d3a0f68cc31f4f2a850.tar.bz2 |
Changes to be committed:
modified: bittests.c
modified: cmpd_dset.c
modified: dsets.c
modified: dt_arith.c
modified: dtypes.c
modified: extend.c
modified: fillval.c
modified: filter_fail.c
modified: flush1.c
modified: gen_cross.c
modified: hyperslab.c
modified: istore.c
modified: links.c
modified: links_env.c
modified: objcopy.c
modified: plugin.c
modified: tcheck_version.c
modified: unlink.c
modified: unregister.c
Minor fixes to replace numeric exit codes with MACRO declarations. Not all codes found were boolean, and those cases were not changed.
Diffstat (limited to 'test/tcheck_version.c')
-rw-r--r-- | test/tcheck_version.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tcheck_version.c b/test/tcheck_version.c index 1abab69..5808680 100644 --- a/test/tcheck_version.c +++ b/test/tcheck_version.c @@ -65,7 +65,7 @@ parse(int ac, char **av) pt = *(++av); if (*pt != '-') { fprintf(stderr, "Unknown option(%s). Aborted.\n", *av); - exit(1); + exit(EXIT_FAILURE); }else{ switch(*(++pt)) { case 't': /* option -t */ @@ -81,15 +81,15 @@ parse(int ac, char **av) break; default: fprintf(stderr, "Unknown -v parameter (%s). Aborted.\n", *av); - exit(1); + exit(EXIT_FAILURE); } break; case 'h': /* help page */ showhelp(); - exit(0); + exit(EXIT_SUCCESS); default: fprintf(stderr, "Unknown option(%s). Aborted.\n", *av); - exit(1); + exit(EXIT_FAILURE); } } } |