summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-05-22 20:27:33 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-05-22 20:27:33 (GMT)
commit2232cf942df7b81ce44888a33e91fbe7077a1f6b (patch)
treed325d7a1445e654e625f122bd3a27df12cfa3706 /src
parent987146cc8e2853ed164769c9de5c2837385ae114 (diff)
downloadhdf5-2232cf942df7b81ce44888a33e91fbe7077a1f6b.zip
hdf5-2232cf942df7b81ce44888a33e91fbe7077a1f6b.tar.gz
hdf5-2232cf942df7b81ce44888a33e91fbe7077a1f6b.tar.bz2
[svn-r13794] Description:
Add 'const' to some pointers in internal routines. Tested on: Linux/32 2.6 (chicago)
Diffstat (limited to 'src')
-rw-r--r--src/H5P.c4
-rw-r--r--src/H5Pprivate.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/H5P.c b/src/H5P.c
index 17f0b57..fa3d446 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -1023,7 +1023,7 @@ done:
--------------------------------------------------------------------------*/
static H5P_genprop_t *
H5P_create_prop(const char *name, size_t size, H5P_prop_within_t type,
- void *value,
+ const void *value,
H5P_prp_create_func_t prp_create, H5P_prp_set_func_t prp_set,
H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_delete,
H5P_prp_copy_func_t prp_copy, H5P_prp_compare_func_t prp_cmp,
@@ -2064,7 +2064,7 @@ done:
--------------------------------------------------------------------------*/
herr_t
H5P_register(H5P_genclass_t *pclass, const char *name, size_t size,
- void *def_value, H5P_prp_create_func_t prp_create, H5P_prp_set_func_t prp_set,
+ const void *def_value, H5P_prp_create_func_t prp_create, H5P_prp_set_func_t prp_set,
H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_delete,
H5P_prp_copy_func_t prp_copy, H5P_prp_compare_func_t prp_cmp,
H5P_prp_close_func_t prp_close)
diff --git a/src/H5Pprivate.h b/src/H5Pprivate.h
index d81b1d1..fe7f8b5 100644
--- a/src/H5Pprivate.h
+++ b/src/H5Pprivate.h
@@ -70,7 +70,7 @@ H5_DLL htri_t H5P_exist_plist(H5P_genplist_t *plist, const char *name);
H5_DLL char *H5P_get_class_name(H5P_genclass_t *pclass);
H5_DLL herr_t H5P_get_nprops_pclass(H5P_genclass_t *pclass, size_t *nprops, hbool_t recurse);
H5_DLL herr_t H5P_register(H5P_genclass_t *pclass, const char *name, size_t size,
- void *def_value, H5P_prp_create_func_t prp_create, H5P_prp_set_func_t prp_set,
+ const void *def_value, H5P_prp_create_func_t prp_create, H5P_prp_set_func_t prp_set,
H5P_prp_get_func_t prp_get, H5P_prp_delete_func_t prp_delete,
H5P_prp_copy_func_t prp_copy, H5P_prp_compare_func_t prp_cmp,
H5P_prp_close_func_t prp_close);