diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-09-07 01:06:26 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-09-07 01:06:26 (GMT) |
commit | 78fda912952d977ec6b157d344834112c363dd26 (patch) | |
tree | 20097d71e9b0cf4e300ffe38423f8a3c8f037329 /test/twriteorder.c | |
parent | 5b9f3660d7419fde023e3f277fb8f7d742fa255e (diff) | |
download | hdf5-78fda912952d977ec6b157d344834112c363dd26.zip hdf5-78fda912952d977ec6b157d344834112c363dd26.tar.gz hdf5-78fda912952d977ec6b157d344834112c363dd26.tar.bz2 |
Fixed some exit calls.
Diffstat (limited to 'test/twriteorder.c')
-rw-r--r-- | test/twriteorder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/twriteorder.c b/test/twriteorder.c index 60ee384..b104b72 100644 --- a/test/twriteorder.c +++ b/test/twriteorder.c @@ -134,7 +134,7 @@ parse_option(int argc, char * const argv[]) switch (c) { case 'h': usage(progname_g); - HDexit(0); + HDexit(EXIT_SUCCESS); break; case 'b': /* number of planes to write/read */ if ((blocksize_g = atoi(optarg)) <= 0) { @@ -407,12 +407,12 @@ main(int argc, char *argv[]) HDprintf("%d: launch reader process\n", mypid); if (read_wo_file() < 0) { HDfprintf(stderr, "read_wo_file encountered error\n"); - HDexit(1); + HDexit(EXIT_FAILURE); } /* Reader is done. Clean up by removing the data file */ HDremove(DATAFILE); - HDexit(0); + HDexit(EXIT_SUCCESS); } } |