summaryrefslogtreecommitdiffstats
path: root/src/H5Sselect.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-06-15 17:52:25 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-06-15 17:52:25 (GMT)
commit40160d4d740ff706520b396fd9367089e8e4e2a2 (patch)
treeeeac17c555696cc94dcbc9493629a056ee6ccd39 /src/H5Sselect.c
parent71c91c6e85219d325c23ef8f71ff0af23989c0da (diff)
downloadhdf5-40160d4d740ff706520b396fd9367089e8e4e2a2.zip
hdf5-40160d4d740ff706520b396fd9367089e8e4e2a2.tar.gz
hdf5-40160d4d740ff706520b396fd9367089e8e4e2a2.tar.bz2
[svn-r13870] Description:
Fix writing variable-length datatype fill values for contiguous dataset storage Tested on: Mac OS X/32 10.4.9 (amazon) Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r--src/H5Sselect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c
index d36e217..666c8da 100644
--- a/src/H5Sselect.c
+++ b/src/H5Sselect.c
@@ -1434,12 +1434,12 @@ done:
REVISION LOG
--------------------------------------------------------------------------*/
herr_t
-H5S_select_fill(void *_fill, size_t fill_size, const H5S_t *space, void *_buf)
+H5S_select_fill(const void *_fill, size_t fill_size, const H5S_t *space, void *_buf)
{
H5S_sel_iter_t iter; /* Selection iteration info */
hbool_t iter_init=0; /* Selection iteration info has been initialized */
uint8_t *buf; /* Current location in buffer */
- void *fill=_fill; /* Alias for fill-value buffer */
+ const void *fill=_fill; /* Alias for fill-value buffer */
hssize_t nelmts; /* Number of elements in selection */
hsize_t off[H5D_IO_VECTOR_SIZE]; /* Array to store sequence offsets */
size_t len[H5D_IO_VECTOR_SIZE]; /* Array to store sequence lengths */
@@ -1503,7 +1503,7 @@ done:
/* Release fill value, if allocated */
if(_fill==NULL && fill)
- H5FL_BLK_FREE(type_elem,fill);
+ H5FL_BLK_FREE(type_elem, (void *)fill); /* casting away const OK - QAK */
FUNC_LEAVE_NOAPI(ret_value);
} /* H5S_select_fill() */