diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2009-12-25 12:32:05 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2009-12-25 12:32:05 (GMT) |
commit | a4027247df26eb54e1d8f8df71bcc01c64057b3b (patch) | |
tree | e13bc6672ea4797e1f3757c33c179e12ba8bb525 /hl/tools/gif2h5/h52gifgentst.c | |
parent | 2fd8480ec7d2521075c8cda5f68643d6708e80df (diff) | |
download | hdf5-a4027247df26eb54e1d8f8df71bcc01c64057b3b.zip hdf5-a4027247df26eb54e1d8f8df71bcc01c64057b3b.tar.gz hdf5-a4027247df26eb54e1d8f8df71bcc01c64057b3b.tar.bz2 |
[svn-r18050] 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.c | 12 |
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; } |