[svn-r4107]

Purpose:
    Bug fix
Description:
    One of the function calls (H5Sget_simple_extent_dims) used parameter with
    the wrong type. That caused compilation errors on T3E.
Solution:
    Used NULL since that argument is optional and was never used.
Platforms tested:
    T3E(mcurie) and IRIX64 (modi4)
This commit is contained in:
Elena Pourmal 2001-07-04 12:32:48 -05:00
parent 3c16a9a41e
commit d9d71b06e4
2 changed files with 2 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}