summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2000-04-12 21:09:38 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2000-04-12 21:09:38 (GMT)
commitb53ed77dbdc39ab5ab3daecb21ba78474c664607 (patch)
tree020815daf3af5bbe44555e9a492c7bbb68b0c08b
parent04404b74db9fa463e851213121467cb9f4ce0304 (diff)
downloadhdf5-b53ed77dbdc39ab5ab3daecb21ba78474c664607.zip
hdf5-b53ed77dbdc39ab5ab3daecb21ba78474c664607.tar.gz
hdf5-b53ed77dbdc39ab5ab3daecb21ba78474c664607.tar.bz2
[svn-r2124] Changed return type of H5Aiterate and the H5A_operator_t to herr_t, to align
them with the dataset & group iterator functions.
-rw-r--r--src/H5A.c4
-rw-r--r--src/H5Apublic.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/H5A.c b/src/H5A.c
index 8c113e1..073e88e 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -1149,12 +1149,12 @@ H5Aget_num_attrs(hid_t loc_id)
* attributes are processed.
*
--------------------------------------------------------------------------*/
-int
+herr_t
H5Aiterate(hid_t loc_id, unsigned *attr_num, H5A_operator_t op, void *op_data)
{
H5G_entry_t *ent = NULL; /*symtab ent of object to attribute */
H5A_t found_attr;
- intn ret_value = 0;
+ herr_t ret_value = 0;
intn idx;
FUNC_ENTER(H5Aiterate, FAIL);
diff --git a/src/H5Apublic.h b/src/H5Apublic.h
index cdc19ec9..809a4a3 100644
--- a/src/H5Apublic.h
+++ b/src/H5Apublic.h
@@ -23,7 +23,7 @@
extern "C" {
#endif
-typedef int (*H5A_operator_t)(hid_t location_id/*in*/,
+typedef herr_t (*H5A_operator_t)(hid_t location_id/*in*/,
const char *attr_name/*in*/, void *operator_data/*in,out*/);
/* Public function prototypes */
@@ -38,7 +38,7 @@ __DLL__ hid_t H5Aget_space(hid_t attr_id);
__DLL__ hid_t H5Aget_type(hid_t attr_id);
__DLL__ ssize_t H5Aget_name(hid_t attr_id, size_t buf_size, char *buf);
__DLL__ int H5Aget_num_attrs(hid_t loc_id);
-__DLL__ int H5Aiterate(hid_t loc_id, unsigned *attr_num, H5A_operator_t op,
+__DLL__ herr_t H5Aiterate(hid_t loc_id, unsigned *attr_num, H5A_operator_t op,
void *op_data);
__DLL__ herr_t H5Adelete(hid_t loc_id, const char *name);