summaryrefslogtreecommitdiffstats
path: root/src/H5T.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-10-27 17:07:41 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-10-27 17:07:41 (GMT)
commit0db364390b48d705b2c3fb225651ba35a19a5b4d (patch)
treeade21aceff44ffe978ca278d2ffbd23209584e08 /src/H5T.c
parentc274ffe1c9bdfa256459213cab1ece7f566b9620 (diff)
downloadhdf5-0db364390b48d705b2c3fb225651ba35a19a5b4d.zip
hdf5-0db364390b48d705b2c3fb225651ba35a19a5b4d.tar.gz
hdf5-0db364390b48d705b2c3fb225651ba35a19a5b4d.tar.bz2
[svn-r9469] Purpose:
Code cleanup Description: Clear up some inconsistencies, inefficiencies and possible errors between the release and development branch. Platforms tested: FreeBSD 4.10 (sleipnir) w/parallel Solaris 2.7 (arabica) Linux 2.4 (heping) w/C++ & FORTRAN
Diffstat (limited to 'src/H5T.c')
-rw-r--r--src/H5T.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/H5T.c b/src/H5T.c
index 0c85c3f..f0adf12 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -34,7 +34,7 @@
#include "H5Eprivate.h" /*error handling */
#include "H5Fpkg.h" /* File */
#include "H5FLprivate.h" /* Free Lists */
-#include "H5FOprivate.h" /* File objects */
+#include "H5FOprivate.h" /* File objects */
#include "H5Gprivate.h" /*groups */
#include "H5Iprivate.h" /*ID functions */
#include "H5MMprivate.h" /*memory management */
@@ -443,7 +443,6 @@ static H5T_t *H5T_decode(const unsigned char *buf);
H5FL_FREE(H5T_t, dt); \
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed") \
} \
- dt->shared->fo_count=1; \
}
@@ -2855,7 +2854,6 @@ H5T_create(H5T_class_t type, size_t size)
}
dt->ent.header = HADDR_UNDEF;
- dt->shared->fo_count = 1;
dt->shared->size = size;
/* Set return value */
@@ -2974,9 +2972,8 @@ H5T_open (H5G_entry_t *ent, hid_t dxpl_id)
done:
if(ret_value==NULL) {
if(dt) {
- if(shared_fo==NULL) { /* Need to free shared fo */
+ if(shared_fo==NULL) /* Need to free shared fo */
H5FL_FREE(H5T_shared_t, dt->shared);
- }
H5FL_FREE(H5T_t, dt);
}
if(shared_fo)
@@ -3095,7 +3092,6 @@ H5T_copy(const H5T_t *old_dt, H5T_copy_t method)
/* Copy actual information */
new_dt->ent = old_dt->ent;
*(new_dt->shared) = *(old_dt->shared);
- new_dt->shared->fo_count = 1;
/* Copy parent information */
if (new_dt->shared->parent)