diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2008-01-15 21:10:42 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2008-01-15 21:10:42 (GMT) |
commit | e622f3351553cb867566a59b5c8e0d5cf0a74c5a (patch) | |
tree | 639deb8e2e350a16b0712f544e26f64bd91827d4 /examples | |
parent | e4b251d90df06d1dcd1a1cdda5ff47c3535a98a1 (diff) | |
download | hdf5-e622f3351553cb867566a59b5c8e0d5cf0a74c5a.zip hdf5-e622f3351553cb867566a59b5c8e0d5cf0a74c5a.tar.gz hdf5-e622f3351553cb867566a59b5c8e0d5cf0a74c5a.tar.bz2 |
[svn-r14420] Description:
Correct the prototype for H5Sselect_elements() to take an 'hsize_t *' for
the coordinates, instead of 'hsize_t **'.
Tested on:
Mac OS X/32 10.5.1 (amazon)
Diffstat (limited to 'examples')
-rw-r--r-- | examples/h5_ref2reg.c | 3 | ||||
-rw-r--r-- | examples/h5_select.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/h5_ref2reg.c b/examples/h5_ref2reg.c index 0cea797..9c75d91 100644 --- a/examples/h5_ref2reg.c +++ b/examples/h5_ref2reg.c @@ -97,8 +97,7 @@ int main(void) * Create a reference to elements selection. */ status = H5Sselect_none(space_id); - status = H5Sselect_elements(space_id, H5S_SELECT_SET, num_points, - (const hsize_t **)coord); + status = H5Sselect_elements(space_id, H5S_SELECT_SET, num_points, coord); status = H5Rcreate(&ref[1], file_id, dsetnamev, H5R_DATASET_REGION, space_id); /* diff --git a/examples/h5_select.c b/examples/h5_select.c index dc08b8a..595a1b3 100644 --- a/examples/h5_select.c +++ b/examples/h5_select.c @@ -171,8 +171,7 @@ main (void) coord[2][0] = 3; coord[2][1] = 5; coord[3][0] = 5; coord[3][1] = 6; - ret = H5Sselect_elements(fid, H5S_SELECT_SET, NPOINTS, - (const hsize_t **)coord); + ret = H5Sselect_elements(fid, H5S_SELECT_SET, NPOINTS, coord); /* * Write new selection of points to the dataset. |