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/swmr_sparse_writer.c | |
parent | 5b9f3660d7419fde023e3f277fb8f7d742fa255e (diff) | |
download | hdf5-78fda912952d977ec6b157d344834112c363dd26.zip hdf5-78fda912952d977ec6b157d344834112c363dd26.tar.gz hdf5-78fda912952d977ec6b157d344834112c363dd26.tar.bz2 |
Fixed some exit calls.
Diffstat (limited to 'test/swmr_sparse_writer.c')
-rw-r--r-- | test/swmr_sparse_writer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/swmr_sparse_writer.c b/test/swmr_sparse_writer.c index 17d8c61..5173c71 100644 --- a/test/swmr_sparse_writer.c +++ b/test/swmr_sparse_writer.c @@ -337,7 +337,7 @@ usage(void) HDprintf("Defaults to verbose (no '-q' given) and flushing every 1000 records\n"); HDprintf("('-f 1000')\n"); HDprintf("\n"); - HDexit(1); + HDexit(EXIT_FAILURE); } int main(int argc, const char *argv[]) @@ -412,7 +412,7 @@ int main(int argc, const char *argv[]) /* Open file skeleton */ if((fid = open_skeleton(FILENAME, verbose)) < 0) { HDfprintf(stderr, "Error opening skeleton file!\n"); - HDexit(1); + HDexit(EXIT_FAILURE); } /* end if */ /* Send a message to indicate "H5Fopen" is complete--releasing the file lock */ @@ -425,7 +425,7 @@ int main(int argc, const char *argv[]) /* Append records to datasets */ if(add_records(fid, verbose, (unsigned long)nrecords, (unsigned long)flush_count) < 0) { HDfprintf(stderr, "Error appending records to datasets!\n"); - HDexit(1); + HDexit(EXIT_FAILURE); } /* end if */ /* Emit informational message */ @@ -435,7 +435,7 @@ int main(int argc, const char *argv[]) /* Clean up the symbols */ if(shutdown_symbols() < 0) { HDfprintf(stderr, "Error releasing symbols!\n"); - HDexit(1); + HDexit(EXIT_FAILURE); } /* end if */ /* Emit informational message */ @@ -445,7 +445,7 @@ int main(int argc, const char *argv[]) /* Close objects opened */ if(H5Fclose(fid) < 0) { HDfprintf(stderr, "Error closing file!\n"); - HDexit(1); + HDexit(EXIT_FAILURE); } /* end if */ return 0; |