diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-10-16 18:19:06 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-10-16 18:19:06 (GMT) |
commit | cdbb523b940f70c160402a32f236f7e8121aabf9 (patch) | |
tree | 2e14fc6e545d027bc4a2c612cb8f215bde93c32d /src/H5Gnode.c | |
parent | 8f0acc169782d33d3519d321c4da3adbf93cd4d2 (diff) | |
download | hdf5-cdbb523b940f70c160402a32f236f7e8121aabf9.zip hdf5-cdbb523b940f70c160402a32f236f7e8121aabf9.tar.gz hdf5-cdbb523b940f70c160402a32f236f7e8121aabf9.tar.bz2 |
[svn-r4548] Purpose:
Code cleanup.
Description:
Fix a few compiler warnings from the file creation property list -> generic
property list conversion. Also change a hard-wired value (8) for the
number of B-tree key values to a value that uses the enum's generated by
the compiler.
Platforms tested:
FreeBSD 4.4 (hawkwind)
Diffstat (limited to 'src/H5Gnode.c')
-rw-r--r-- | src/H5Gnode.c | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/src/H5Gnode.c b/src/H5Gnode.c index 9a25c37..d698504 100644 --- a/src/H5Gnode.c +++ b/src/H5Gnode.c @@ -1213,14 +1213,38 @@ H5G_node_debug(H5F_t *f, haddr_t addr, FILE * stream, int indent, FUNC_LEAVE(SUCCEED); } -unsigned H5G_node_k(H5F_t *f) + +/*------------------------------------------------------------------------- + * Function: H5G_node_k + * + * Purpose: Replaced a macro to retrieve the symbol table leaf size, + * now that the generic properties are being used to store + * the values. + * + * Return: Success: Non-negative, and the symbol table leaf size is + * returned. + * + * Failure: Negative (should not happen) + * + * Programmer: Raymond Lu + * slu@ncsa.uiuc.edu + * Oct 14 2001 + * + * Modifications: + * Quincey Koziol, 2001-10-15 + * Added this header and removed unused ret_value variable. + *------------------------------------------------------------------------- + */ +unsigned H5G_node_k(const H5F_t *f) { - int sym_leaf_k; + unsigned sym_leaf_k; + + FUNC_ENTER(H5G_node_k, UFAIL); - FUNC_ENTER(H5G_node_k, FAIL); + assert(f); if(H5P_get(f->shared->fcpl_id, H5F_CRT_SYM_LEAF_NAME, &sym_leaf_k) < 0) - HRETURN_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, + HRETURN_ERROR(H5E_PLIST, H5E_CANTGET, UFAIL, "can't get rank for symbol table leaf node"); FUNC_LEAVE(sym_leaf_k); |