diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-08-15 18:04:39 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-08-15 18:04:39 (GMT) |
commit | 84162bd5213b4f4c284f19b455a9957ca1c1197a (patch) | |
tree | be49be41bdcf3e9464e9e564c9fa1164a83133c3 /src | |
parent | 81cde8e325d01f68a02837429fec7ffb961e3d5a (diff) | |
download | hdf5-84162bd5213b4f4c284f19b455a9957ca1c1197a.zip hdf5-84162bd5213b4f4c284f19b455a9957ca1c1197a.tar.gz hdf5-84162bd5213b4f4c284f19b455a9957ca1c1197a.tar.bz2 |
[svn-r4361] Purpose:
Code cleanup
Description:
Changed prototype for H5Awrite's buffer from "void *" to "const void *"
Platforms tested:
FreeBSD 4.4 (hawkwind)
Diffstat (limited to 'src')
-rw-r--r-- | src/H5A.c | 6 | ||||
-rw-r--r-- | src/H5Apublic.h | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -40,7 +40,7 @@ static herr_t H5A_init_interface(void); static hid_t H5A_create(const H5G_entry_t *ent, const char *name, const H5T_t *type, const H5S_t *space); static hid_t H5A_open(H5G_entry_t *ent, unsigned idx); -static herr_t H5A_write(H5A_t *attr, const H5T_t *mem_type, void *buf); +static herr_t H5A_write(H5A_t *attr, const H5T_t *mem_type, const void *buf); static herr_t H5A_read(H5A_t *attr, const H5T_t *mem_type, void *buf); static int H5A_get_index(H5G_entry_t *ent, const char *name); @@ -558,7 +558,7 @@ done: This function writes a complete attribute to disk. --------------------------------------------------------------------------*/ herr_t -H5Awrite(hid_t attr_id, hid_t type_id, void *buf) +H5Awrite(hid_t attr_id, hid_t type_id, const void *buf) { H5A_t *attr = NULL; const H5T_t *mem_type = NULL; @@ -609,7 +609,7 @@ H5Awrite(hid_t attr_id, hid_t type_id, void *buf) This function writes a complete attribute to disk. --------------------------------------------------------------------------*/ static herr_t -H5A_write(H5A_t *attr, const H5T_t *mem_type, void *buf) +H5A_write(H5A_t *attr, const H5T_t *mem_type, const void *buf) { uint8_t *tconv_buf = NULL; /* data type conv buffer */ uint8_t *bkg_buf = NULL; /* temp conversion buffer */ diff --git a/src/H5Apublic.h b/src/H5Apublic.h index cb20061..0e2c7fd 100644 --- a/src/H5Apublic.h +++ b/src/H5Apublic.h @@ -31,7 +31,7 @@ __DLL__ hid_t H5Acreate(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t plist_id); __DLL__ hid_t H5Aopen_name(hid_t loc_id, const char *name); __DLL__ hid_t H5Aopen_idx(hid_t loc_id, unsigned idx); -__DLL__ herr_t H5Awrite(hid_t attr_id, hid_t type_id, void *buf); +__DLL__ herr_t H5Awrite(hid_t attr_id, hid_t type_id, const void *buf); __DLL__ herr_t H5Aread(hid_t attr_id, hid_t type_id, void *buf); __DLL__ herr_t H5Aclose(hid_t attr_id); __DLL__ hid_t H5Aget_space(hid_t attr_id); |