summaryrefslogtreecommitdiffstats
path: root/src/H5Tcommit.c
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2013-07-18 22:27:55 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2013-07-18 22:27:55 (GMT)
commit28acbad7d0108df5cc04d4fb4ebbbeec01c1fadb (patch)
tree32d376e13f5a24ac8420f00b6db9ddbde3ae3abf /src/H5Tcommit.c
parentb27392e36a73889448500eced4f37e59c06b2a02 (diff)
downloadhdf5-28acbad7d0108df5cc04d4fb4ebbbeec01c1fadb.zip
hdf5-28acbad7d0108df5cc04d4fb4ebbbeec01c1fadb.tar.gz
hdf5-28acbad7d0108df5cc04d4fb4ebbbeec01c1fadb.tar.bz2
[svn-r23919] Modify H5Tcommitted to work with VOL plugins.
Tested: ummon (with prototype network plugin)
Diffstat (limited to 'src/H5Tcommit.c')
-rw-r--r--src/H5Tcommit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/H5Tcommit.c b/src/H5Tcommit.c
index e55a498..6d80bac 100644
--- a/src/H5Tcommit.c
+++ b/src/H5Tcommit.c
@@ -528,18 +528,18 @@ done:
htri_t
H5T_committed(const H5T_t *type)
{
- const H5T_t *dt;
+ htri_t ret_value;
FUNC_ENTER_NOAPI_NOINIT_NOERR
HDassert(type);
- if (NULL == type->vol_obj)
- dt = type;
+ if(type->vol_obj)
+ ret_value = TRUE;
else
- dt = (const H5T_t *)type->vol_obj;
+ ret_value = (H5T_STATE_OPEN == type->shared->state || H5T_STATE_NAMED == type->shared->state);
- FUNC_LEAVE_NOAPI(H5T_STATE_OPEN == dt->shared->state || H5T_STATE_NAMED == dt->shared->state)
+ FUNC_LEAVE_NOAPI(ret_value)
} /* end H5T_committed() */