summaryrefslogtreecommitdiffstats
path: root/src/H5P.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2016-04-26 19:33:45 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2016-04-26 19:33:45 (GMT)
commitf63b2c50ac95fb8363a9b8143d3a3d5f50c58d35 (patch)
tree840f2187be73a641a816d668682478ea90670be8 /src/H5P.c
parent75b926c96aa0716e0936d6fa5dfad1142fe14331 (diff)
downloadhdf5-f63b2c50ac95fb8363a9b8143d3a3d5f50c58d35.zip
hdf5-f63b2c50ac95fb8363a9b8143d3a3d5f50c58d35.tar.gz
hdf5-f63b2c50ac95fb8363a9b8143d3a3d5f50c58d35.tar.bz2
[svn-r29815] Description:
Change 'value' pointer to H5Pset() from 'void *' to 'const void *'. Tested on: MacOSX/64 10.11.4 (amazon) w/serial (h5committest forthcoming)
Diffstat (limited to 'src/H5P.c')
-rw-r--r--src/H5P.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5P.c b/src/H5P.c
index f075b92..254c3a9 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -665,10 +665,10 @@ done:
REVISION LOG
--------------------------------------------------------------------------*/
herr_t
-H5Pset(hid_t plist_id, const char *name, void *value)
+H5Pset(hid_t plist_id, const char *name, const void *value)
{
H5P_genplist_t *plist; /* Property list to modify */
- herr_t ret_value=SUCCEED; /* return value */
+ herr_t ret_value = SUCCEED; /* return value */
FUNC_ENTER_API(FAIL)
H5TRACE3("e", "i*s*x", plist_id, name, value);
@@ -678,11 +678,11 @@ H5Pset(hid_t plist_id, const char *name, void *value)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property list");
if(!name || !*name)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "invalid property name");
- if(value==NULL)
+ if(value == NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "invalied property value");
/* Go set the value */
- if(H5P_set(plist,name,value) < 0)
+ if(H5P_set(plist, name, value) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "unable to set value in plist");
done: