diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-01-05 18:01:45 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-01-05 18:01:45 (GMT) |
commit | b3c2354a1b1a26307082c5295b83248b7dd234c1 (patch) | |
tree | 0e6d6b5c860c0534d861dce07a57dab08e38975d /tools/test | |
parent | cdda9c0a6a673314e4aac9ed5f49b3f69e9ad6da (diff) | |
download | hdf5-b3c2354a1b1a26307082c5295b83248b7dd234c1.zip hdf5-b3c2354a1b1a26307082c5295b83248b7dd234c1.tar.gz hdf5-b3c2354a1b1a26307082c5295b83248b7dd234c1.tar.bz2 |
Corrected return calls from main()
Diffstat (limited to 'tools/test')
-rw-r--r-- | tools/test/misc/clear_open_chk.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/test/misc/clear_open_chk.c b/tools/test/misc/clear_open_chk.c index 67b5634..23f58bf 100644 --- a/tools/test/misc/clear_open_chk.c +++ b/tools/test/misc/clear_open_chk.c @@ -48,7 +48,7 @@ main(int argc, char *argv[]) /* Check the # of arguments */ if(argc != 2) { usage(); - return(EXIT_FAILURE); + HDexit(EXIT_FAILURE); } /* Get the file name */ @@ -58,17 +58,16 @@ main(int argc, char *argv[]) if((fid = h5tools_fopen(fname, H5F_ACC_RDONLY, H5P_DEFAULT, NULL, NULL, (size_t)0)) < 0) { HDfprintf(stderr, "clear_open_chk: unable to open the file\n"); HDfree(fname); - return EXIT_FAILURE; + HDexit(EXIT_FAILURE); } HDfree(fname); /* Close the file */ if(H5Fclose(fid) < 0) { HDfprintf(stderr, "clear_open_chk: cannot close the file\n"); - return EXIT_FAILURE; + HDexit(EXIT_FAILURE); } /* Return success */ - return EXIT_SUCCESS; - + HDexit(EXIT_SUCCESS); } /* main() */ |