From b3c2354a1b1a26307082c5295b83248b7dd234c1 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Thu, 5 Jan 2017 12:01:45 -0600 Subject: Corrected return calls from main() --- tools/test/misc/clear_open_chk.c | 9 ++++----- 1 file 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() */ -- cgit v0.12