diff options
-rw-r--r-- | hl/tools/gif2h5/readhdf.c | 3 | ||||
-rw-r--r-- | tools/gifconv/readhdf.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/hl/tools/gif2h5/readhdf.c b/hl/tools/gif2h5/readhdf.c index 52a1837..76bfb86 100644 --- a/hl/tools/gif2h5/readhdf.c +++ b/hl/tools/gif2h5/readhdf.c @@ -38,7 +38,6 @@ int ReadHDF(BYTE** data , hid_t pal_set; /* dataset for palette */ hid_t pal_space;/* dataspace for palette */ hsize_t datasize; /* size of the image */ - hsize_t maxdims; /* dummy */ int pal_exist = 0; /* do we have a palette? */ /* check stuff */ @@ -72,7 +71,7 @@ int ReadHDF(BYTE** data , } /* get the dimension size of the image */ - if (H5Sget_simple_extent_dims(dspace , image_size , &maxdims) !=2 ) { + if (H5Sget_simple_extent_dims(dspace , image_size , NULL) !=2 ) { fprintf(stderr , "Unable to get dimension info\n"); return -1; } diff --git a/tools/gifconv/readhdf.c b/tools/gifconv/readhdf.c index 52a1837..76bfb86 100644 --- a/tools/gifconv/readhdf.c +++ b/tools/gifconv/readhdf.c @@ -38,7 +38,6 @@ int ReadHDF(BYTE** data , hid_t pal_set; /* dataset for palette */ hid_t pal_space;/* dataspace for palette */ hsize_t datasize; /* size of the image */ - hsize_t maxdims; /* dummy */ int pal_exist = 0; /* do we have a palette? */ /* check stuff */ @@ -72,7 +71,7 @@ int ReadHDF(BYTE** data , } /* get the dimension size of the image */ - if (H5Sget_simple_extent_dims(dspace , image_size , &maxdims) !=2 ) { + if (H5Sget_simple_extent_dims(dspace , image_size , NULL) !=2 ) { fprintf(stderr , "Unable to get dimension info\n"); return -1; } |