summaryrefslogtreecommitdiffstats
path: root/tools/gifconv/readhdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gifconv/readhdf.c')
-rw-r--r--tools/gifconv/readhdf.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/gifconv/readhdf.c b/tools/gifconv/readhdf.c
index 602c48f..5b9c9d1 100644
--- a/tools/gifconv/readhdf.c
+++ b/tools/gifconv/readhdf.c
@@ -32,7 +32,6 @@ int ReadHDF(BYTE** data ,
CHAR *pal_name)
{
hid_t fHfile; /* H5 file to open */
- herr_t status; /* status variable */
hid_t dspace; /* dataspace identifier for the the dataset */
hid_t dset; /* dataset identifier */
@@ -89,7 +88,7 @@ int ReadHDF(BYTE** data ,
}
/* get the actual image */
- if ((status = H5Dread(dset , H5Dget_type(dset) , H5S_ALL , H5S_ALL , H5P_DEFAULT , *data)) < 0) {
+ if (H5Dread(dset , H5Dget_type(dset) , H5S_ALL , H5S_ALL , H5P_DEFAULT , *data) < 0) {
fprintf(stderr , "Unable to read data \n");
cleanup(*data);
return -1;
@@ -140,7 +139,7 @@ int ReadHDF(BYTE** data ,
}
/* get the actual palette */
- if ((status = H5Dread(pal_set , H5Dget_type(pal_set) , H5S_ALL , H5S_ALL , H5P_DEFAULT , temp_buf)) < 0) {
+ if (H5Dread(pal_set , H5Dget_type(pal_set) , H5S_ALL , H5S_ALL , H5P_DEFAULT , temp_buf) < 0) {
fprintf(stderr , "Unable to read data \n");
cleanup(*data);
cleanup(temp_buf);
@@ -165,9 +164,9 @@ int ReadHDF(BYTE** data ,
}
/* close everything */
- status = H5Dclose(dset);
- status = H5Sclose(dspace);
- status = H5Fclose(fHfile);
+ H5Dclose(dset);
+ H5Sclose(dspace);
+ H5Fclose(fHfile);
return 0;
}