summaryrefslogtreecommitdiffstats
path: root/src/H5C.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-01-28 20:24:49 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-01-28 20:24:49 (GMT)
commit55ac27633ba1984d4296159bf06f562d0adaec61 (patch)
tree96a3cd0deec4a113b915b8c527fd4d410074718c /src/H5C.c
parent9287018553d4bc83c1d7bb7691bb3a501604b942 (diff)
downloadhdf5-55ac27633ba1984d4296159bf06f562d0adaec61.zip
hdf5-55ac27633ba1984d4296159bf06f562d0adaec61.tar.gz
hdf5-55ac27633ba1984d4296159bf06f562d0adaec61.tar.bz2
[svn-r188] Changed hbool_t from an enum to 'int' and removed BTRUE/BFALSE/BFAIL from code.
Changed interface to the H5P..hyperslab functions to 'int' instead of 'size_t'. Cleaned up lots of warnings on IRIX 6.2 platform. Minor other tweaks to get to a mostly clean build on the SGI. It still whines about 'long long' being non-standard and some "pointless comparison of unsigned with 0" but those aren't big problems.
Diffstat (limited to 'src/H5C.c')
-rw-r--r--src/H5C.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5C.c b/src/H5C.c
index 436ecea..d67fbdd 100644
--- a/src/H5C.c
+++ b/src/H5C.c
@@ -66,7 +66,7 @@ H5C_init_interface(void)
* atom groups aren't.
*/
for (i = 0; i < H5C_NCLASSES; i++) {
- status = H5A_init_group(H5_TEMPLATE_0 + i, H5A_TEMPID_HASHSIZE, 0, NULL);
+ status = H5A_init_group((group_t)(H5_TEMPLATE_0 +i), H5A_TEMPID_HASHSIZE, 0, NULL);
if (status < 0)
ret_value = FAIL;
}
@@ -107,7 +107,7 @@ H5C_term_interface(void)
intn i;
for (i = 0; i < H5C_NCLASSES; i++) {
- H5A_destroy_group(H5_TEMPLATE_0 + i);
+ H5A_destroy_group((group_t)(H5_TEMPLATE_0 + i));
}
}
@@ -202,7 +202,7 @@ H5C_create(H5C_class_t type, void *tmpl)
assert(tmpl);
/* Atomize the new template */
- if ((ret_value = H5A_register(H5_TEMPLATE_0 + type, tmpl)) < 0) {
+ if ((ret_value = H5A_register((group_t)(H5_TEMPLATE_0 + type), tmpl)) < 0) {
HRETURN_ERROR(H5E_ATOM, H5E_CANTINIT, FAIL,
"can't register template");
}
@@ -269,7 +269,7 @@ H5Cget_class(hid_t tid)
group < H5_TEMPLATE_0) {
HRETURN_ERROR(H5E_ATOM, H5E_BADATOM, H5C_NO_CLASS, "not a template");
}
- ret_value = group - H5_TEMPLATE_0;
+ ret_value = (H5C_class_t)(group - H5_TEMPLATE_0);
FUNC_LEAVE(ret_value);
}