summaryrefslogtreecommitdiffstats
path: root/src/H5Dscatgath.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2013-07-02 21:17:16 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2013-07-02 21:17:16 (GMT)
commit259abfa83970f7da997e2b95c8357fd85b800bbe (patch)
tree7b1052c96add9a46d57c207b73c444f5f95dcadb /src/H5Dscatgath.c
parent53afd20aeb09fb2565811cc3dbf22890f0fcf900 (diff)
downloadhdf5-259abfa83970f7da997e2b95c8357fd85b800bbe.zip
hdf5-259abfa83970f7da997e2b95c8357fd85b800bbe.tar.gz
hdf5-259abfa83970f7da997e2b95c8357fd85b800bbe.tar.bz2
[svn-r23859] Add const tag to source buffers for H5Dscatter and H5Dgather.
Tested: ummon
Diffstat (limited to 'src/H5Dscatgath.c')
-rw-r--r--src/H5Dscatgath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Dscatgath.c b/src/H5Dscatgath.c
index 60a8800..4b0846f 100644
--- a/src/H5Dscatgath.c
+++ b/src/H5Dscatgath.c
@@ -925,7 +925,7 @@ H5Dscatter(H5D_scatter_func_t op, void *op_data, hid_t type_id,
H5S_t *dst_space; /* Dataspace */
H5S_sel_iter_t iter; /* Selection iteration info*/
hbool_t iter_init = FALSE; /* Selection iteration info has been initialized */
- void *src_buf = NULL; /* Source (contiguous) data buffer */
+ const void *src_buf = NULL; /* Source (contiguous) data buffer */
size_t src_buf_nbytes = 0; /* Size of src_buf */
size_t type_size; /* Datatype element size */
hssize_t nelmts; /* Number of remaining elements in selection */
@@ -1018,8 +1018,8 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5Dgather(hid_t src_space_id, void *src_buf, hid_t type_id, size_t dst_buf_size,
- void *dst_buf, H5D_gather_func_t op, void *op_data)
+H5Dgather(hid_t src_space_id, const void *src_buf, hid_t type_id,
+ size_t dst_buf_size, void *dst_buf, H5D_gather_func_t op, void *op_data)
{
H5T_t *type; /* Datatype */
H5S_t *src_space; /* Dataspace */