summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1997-08-15 16:06:12 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1997-08-15 16:06:12 (GMT)
commitfdb45fa4fa3c0e0749deb2b40c6246543ba47cf1 (patch)
treeb766f5bc4aa6143f76e15d4e773985ac20aa7a88 /src/H5D.c
parent876badec3f143c1ca90f240c02e09e54b1b20608 (diff)
downloadhdf5-fdb45fa4fa3c0e0749deb2b40c6246543ba47cf1.zip
hdf5-fdb45fa4fa3c0e0749deb2b40c6246543ba47cf1.tar.gz
hdf5-fdb45fa4fa3c0e0749deb2b40c6246543ba47cf1.tar.bz2
[svn-r31] Added code for H5Mget_file & H5Mflush and re-targeted some of the H5D calls
to use them.
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 84bf955..e6c7789 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -91,15 +91,15 @@ hatom_t H5D_create(hatom_t owner_id, hobjtype_t type, const char *name)
/* Clear errors and check args and all the boring stuff. */
H5ECLEAR;
- /* Allocate space for the new data-type */
+ /* Allocate space for the new dataset */
if((new_dset=HDmalloc(sizeof(H5D_dataset_t)))==NULL)
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL);
- /* Initialize the dimensionality object */
+ /* Initialize the dataset object */
if(H5Aatom_group(owner_id)==H5_FILE)
new_dset->file=owner_id;
else
- new_dset->file=owner_id;
+ new_dset->file=H5Mget_file(owner_id);
new_dset->parent=owner_id; /* set the owner's ID */
new_dset->name=HDstrdup(name); /* make a copy of the dataset name */
new_dset->modified=BTRUE; /* Yep, we're new... */