summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-10-31 21:02:16 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-10-31 21:02:16 (GMT)
commit0b8b8df0e0e9e8dbf3eb5a9e03035094dd5c49d9 (patch)
tree8b6e718965370d68d2795bc92eff8ba3d63d1cc2 /src/H5F.c
parent6f6b6bb5e880b0c8f7472847e9b1b2cf498d4e35 (diff)
downloadhdf5-0b8b8df0e0e9e8dbf3eb5a9e03035094dd5c49d9.zip
hdf5-0b8b8df0e0e9e8dbf3eb5a9e03035094dd5c49d9.tar.gz
hdf5-0b8b8df0e0e9e8dbf3eb5a9e03035094dd5c49d9.tar.bz2
[svn-r7803] Purpose:
Minor code cleanup Description: Fixed up comments, made the H5I_get_file_id() routine static, removed H5Gprivate from including itself... Platforms tested: FreeBSD 4.9 (sleipnir) too minor to require h5committest
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 4ee3441..c8d9bf2 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -4186,9 +4186,8 @@ done:
/*-------------------------------------------------------------------------
* Function: H5F_get_id
*
- * Purpose: Quick and dirty routine to retrieve the file's 'file id'
- * (Mainly added to stop non-file routines from poking about
- * in the H5F_t data structure)
+ * Purpose: Get the file ID, incrementing it, or "resurrecting" it as
+ * appropriate.
*
* Return: Non-negative on success/Negative on failure
*
@@ -4206,6 +4205,7 @@ H5F_get_id(H5F_t *file)
FUNC_ENTER_NOINIT(H5F_get_id)
assert(file);
+
if(file->file_id == -1) {
if(H5I_remove(file->closing)==NULL)
HGOTO_ERROR(H5E_ATOM, H5E_READERROR, FAIL, "unable to remove from closing list")