summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-07-22 14:32:48 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-07-22 14:32:48 (GMT)
commit2c4cff1259d1427aaa02125b95148522facb64f0 (patch)
treee7b98b884f09210ad185237e2ca1697d985af28f /src/H5F.c
parent37ab21a3fc9a4426b3f4733f8cfe3abe2b12d4df (diff)
downloadhdf5-2c4cff1259d1427aaa02125b95148522facb64f0.zip
hdf5-2c4cff1259d1427aaa02125b95148522facb64f0.tar.gz
hdf5-2c4cff1259d1427aaa02125b95148522facb64f0.tar.bz2
[svn-r11104] Purpose:
Bug fix Description: C++ compiler doesn't like 'new' as a variable name. Solution: Changed to "new_shared" Platforms tested: Trivial - just eyeballed it.
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/H5F.c b/src/H5F.c
index ba7a983..ea9e608 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -4181,7 +4181,7 @@ done:
static herr_t
H5F_shared_add(H5F_file_t *shared)
{
- H5F_sfile_node_t *new; /* New shared file node */
+ H5F_sfile_node_t *new_shared; /* New shared file node */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_NOAPI_NOINIT(H5F_shared_add)
@@ -4190,15 +4190,15 @@ H5F_shared_add(H5F_file_t *shared)
HDassert(shared);
/* Allocate new shared file node */
- if (NULL == (new = H5FL_CALLOC(H5F_sfile_node_t)))
+ if (NULL == (new_shared = H5FL_CALLOC(H5F_sfile_node_t)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed")
/* Set shared file value */
- new->shared = shared;
+ new_shared->shared = shared;
/* Prepend to list of shared files open */
- new->next = H5F_sfile_head_g;
- H5F_sfile_head_g = new;
+ new_shared->next = H5F_sfile_head_g;
+ H5F_sfile_head_g = new_shared;
done:
FUNC_LEAVE_NOAPI(ret_value)