summaryrefslogtreecommitdiffstats
path: root/src/H5Pfapl.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-11-05 04:31:26 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-11-05 04:31:26 (GMT)
commit8eaa0af30585adbbab29686541cd33e058abd6e8 (patch)
tree3d018ce01937e899e08fd1845c9d7cb6a4cbdc4d /src/H5Pfapl.c
parent2b5efccc302ee577daa59639109921456f787813 (diff)
downloadhdf5-8eaa0af30585adbbab29686541cd33e058abd6e8.zip
hdf5-8eaa0af30585adbbab29686541cd33e058abd6e8.tar.gz
hdf5-8eaa0af30585adbbab29686541cd33e058abd6e8.tar.bz2
Changed the return type of H5Pget_driver_info() from void * to
const void *. Fixes HDFFV-10017.
Diffstat (limited to 'src/H5Pfapl.c')
-rw-r--r--src/H5Pfapl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Pfapl.c b/src/H5Pfapl.c
index 9309ea9..15662cc 100644
--- a/src/H5Pfapl.c
+++ b/src/H5Pfapl.c
@@ -875,11 +875,11 @@ done:
*
*-------------------------------------------------------------------------
*/
-void *
+const void *
H5Pget_driver_info(hid_t plist_id)
{
- H5P_genplist_t *plist; /* Property list pointer */
- void *ret_value; /* Return value */
+ H5P_genplist_t *plist = NULL; /* Property list pointer */
+ const void *ret_value = NULL; /* Return value */
FUNC_ENTER_API(NULL)
H5TRACE1("*x", "i", plist_id);
@@ -888,7 +888,7 @@ H5Pget_driver_info(hid_t plist_id)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a property list")
/* Get the driver info */
- if(NULL == (ret_value = (void *)H5P_peek_driver_info(plist)))
+ if(NULL == (ret_value = (const void *)H5P_peek_driver_info(plist)))
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, NULL, "can't get driver info")
done: