summaryrefslogtreecommitdiffstats
path: root/src/H5B.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1997-08-11 22:49:59 (GMT)
committerRobb Matzke <matzke@llnl.gov>1997-08-11 22:49:59 (GMT)
commit326981f421b993815657daecc8b37bd732513d82 (patch)
treeb7a47af6b8d952ea212ee698b2aa3f7f2db3eb82 /src/H5B.c
parenteec23941abb546ba9d4c03e3cacd4ff70f116b7a (diff)
downloadhdf5-326981f421b993815657daecc8b37bd732513d82.zip
hdf5-326981f421b993815657daecc8b37bd732513d82.tar.gz
hdf5-326981f421b993815657daecc8b37bd732513d82.tar.bz2
[svn-r24] ./src/H5B.c
./src/H5Bprivate.h ./src/H5G.c H5B_new() only takes two arguments. ./src/H5C.c Fixed initializer for default_file_create to be the same order as it's definition. ./src/H5D.c Changed commented-out code to #if 0/#endif. #if'd out a variable that was unused because of #if'd out code. ./src/H5Dproto.c Added a prototype for H5Dwrite(). ./src/H5F.c Changed parentheses to fix precedence problems from: flags & (~H5AC_OVERWRITE) != 0 to (flags & ~H5AC_OVERWRITE) != 0 ./src/H5H.c Heap reallocation doubles the heap size instead of tripling it. ./src/H5O.c Got rid of a statement with no effect. ./src/hdf5port.h Indented a few #defines. Added a defn for MAX3().
Diffstat (limited to 'src/H5B.c')
-rw-r--r--src/H5B.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/H5B.c b/src/H5B.c
index 7182f10..d700a7c 100644
--- a/src/H5B.c
+++ b/src/H5B.c
@@ -158,11 +158,11 @@ static interface_initialize_g = FALSE;
*-------------------------------------------------------------------------
*/
haddr_t
-H5B_new (hdf5_file_t *f, const H5B_class_t *type, size_t sizeof_rkey)
+H5B_new (hdf5_file_t *f, const H5B_class_t *type)
{
H5B_t *bt=NULL;
haddr_t addr;
- size_t size;
+ size_t size, sizeof_rkey;
size_t total_native_keysize;
intn offset, i;
@@ -178,6 +178,7 @@ H5B_new (hdf5_file_t *f, const H5B_class_t *type, size_t sizeof_rkey)
/*
* Allocate file and memory data structures.
*/
+ sizeof_rkey = (type->get_sizeof_rkey)(f);
size = H5B_nodesize (f, type, &total_native_keysize, sizeof_rkey);
if ((addr = H5MF_alloc (f, size))<0) {
HRETURN_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL);