summaryrefslogtreecommitdiffstats
path: root/hl/tools/gif2h5/h52gifgentst.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2009-12-25 12:37:55 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2009-12-25 12:37:55 (GMT)
commit840e04ab5f5ce7fa5d07a3c9187944c27f9534e9 (patch)
treef7bcc6421a20d20e3a4ec5b029adf0097e8686ed /hl/tools/gif2h5/h52gifgentst.c
parent06ce6af638e6eecd9a80c3e4757bb8361b68f889 (diff)
downloadhdf5-840e04ab5f5ce7fa5d07a3c9187944c27f9534e9.zip
hdf5-840e04ab5f5ce7fa5d07a3c9187944c27f9534e9.tar.gz
hdf5-840e04ab5f5ce7fa5d07a3c9187944c27f9534e9.tar.bz2
[svn-r18051] Bug fix: 1192
Description: Some exit code (sometimes return code in Main) to follow the HDF5 standards. Tested: H5committested plus serial test in Jam.
Diffstat (limited to 'hl/tools/gif2h5/h52gifgentst.c')
-rw-r--r--hl/tools/gif2h5/h52gifgentst.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hl/tools/gif2h5/h52gifgentst.c b/hl/tools/gif2h5/h52gifgentst.c
index eb83335..ef38c3b 100644
--- a/hl/tools/gif2h5/h52gifgentst.c
+++ b/hl/tools/gif2h5/h52gifgentst.c
@@ -58,7 +58,7 @@ int main(void)
/* create a file */
if ((fid = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT))<0)
- return 1;
+ return EXIT_FAILURE;
/* create an image */
space = WIDTH*HEIGHT / PAL_ENTRIES;
@@ -75,7 +75,7 @@ int main(void)
/* make the image */
if (H5IMmake_image_8bit( fid, IMAGE1_NAME, width, height, buf )<0)
- return 1;
+ return EXIT_FAILURE;
/*-------------------------------------------------------------------------
* define a palette, blue to red tones
@@ -90,15 +90,15 @@ int main(void)
/* make a palette */
if (H5IMmake_palette( fid, PAL_NAME, pal_dims, pal )<0)
- return 1;
+ return EXIT_FAILURE;
/* attach the palette to the image */
if (H5IMlink_palette( fid, IMAGE1_NAME, PAL_NAME )<0)
- return 1;
+ return EXIT_FAILURE;
if(H5Fclose(fid)<0)
- return 1;
+ return EXIT_FAILURE;
- return 0;
+ return EXIT_SUCCESS;
}