summaryrefslogtreecommitdiffstats
path: root/hl/tools/gif2h5/gifread.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/gifread.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/gifread.c')
-rw-r--r--hl/tools/gif2h5/gifread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hl/tools/gif2h5/gifread.c b/hl/tools/gif2h5/gifread.c
index a08564a..2b4c129 100644
--- a/hl/tools/gif2h5/gifread.c
+++ b/hl/tools/gif2h5/gifread.c
@@ -68,7 +68,7 @@ ReadGifHeader(GIFHEAD *GifHead, /* Pointer to GIF header structure */
if (strncmp((const char *)GifHead->HeaderDump , "GIF" , (size_t)3)) {
printf("The file does not appear to be a valid GIF file.\n");
- exit(-1);
+ exit(EXIT_FAILURE);
}
for (i = 0 ; i < 7 ; i++) {
@@ -192,7 +192,7 @@ ReadGifImageDesc(
/*GifImageDesc->GIFImage = ReadDataSubBlocks(FpGif);*/
if (!(GifImageDesc->GIFImage = (BYTE *)malloc((GifImageDesc->ImageWidth) * (GifImageDesc->ImageHeight)))) {
printf("Out of memory");
- exit(-1);
+ exit(EXIT_FAILURE);
}