summaryrefslogtreecommitdiffstats
path: root/src/H5Odtype.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-10-23 15:03:15 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-10-23 15:03:15 (GMT)
commit1062b4f9d7080a3e439df7d3d527aee43f96d085 (patch)
tree0b47d618799f9e9f34f6ef0dbde80a06013d73e7 /src/H5Odtype.c
parent1202e83013bdbce9592d0bd70f41e84c83f6c2d5 (diff)
downloadhdf5-1062b4f9d7080a3e439df7d3d527aee43f96d085.zip
hdf5-1062b4f9d7080a3e439df7d3d527aee43f96d085.tar.gz
hdf5-1062b4f9d7080a3e439df7d3d527aee43f96d085.tar.bz2
[svn-r12802] Description:
Clean up code in passing... Tested on: Linux/32 2.4 (heping) Linux/64 2.4 (mir) FreeBSD/32 4.11(sleipnir) Mac OS/32 10.4.8 (amazon)
Diffstat (limited to 'src/H5Odtype.c')
-rw-r--r--src/H5Odtype.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c
index ef75b54..73829c2 100644
--- a/src/H5Odtype.c
+++ b/src/H5Odtype.c
@@ -17,8 +17,8 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
-#include "H5FLprivate.h" /* Free Lists */
#include "H5Fprivate.h" /* Files */
+#include "H5FLprivate.h" /* Free Lists */
#include "H5Gprivate.h" /* Groups */
#include "H5MMprivate.h" /* Memory management */
#include "H5Opkg.h" /* Object headers */
@@ -161,7 +161,7 @@ H5O_dtype_decode_helper(H5F_t *f, const uint8_t **pp, H5T_t *dt)
* Opaque types...
*/
z = flags & (H5T_OPAQUE_TAG_MAX - 1);
- HDassert(0==(z&0x7)); /*must be aligned*/
+ HDassert(0 == (z & 0x7)); /*must be aligned*/
if(NULL == (dt->shared->u.opaque.tag = H5MM_malloc(z + 1)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed")
HDmemcpy(dt->shared->u.opaque.tag, *pp, z);
@@ -949,7 +949,7 @@ H5O_dtype_decode(H5F_t *f, hid_t UNUSED dxpl_id, const uint8_t *p)
/* Perform actual decode of message */
if(H5O_dtype_decode_helper(f, &p, dt) < 0)
- HGOTO_ERROR(H5E_DATATYPE, H5E_CANTDECODE, NULL, "can't decode type");
+ HGOTO_ERROR(H5E_DATATYPE, H5E_CANTDECODE, NULL, "can't decode type")
/* Set return value */
ret_value = dt;
@@ -1030,28 +1030,28 @@ H5O_dtype_copy(const void *_src, void *_dst, unsigned UNUSED update_flags)
H5T_t *dst = NULL;
void *ret_value; /* Return value */
- FUNC_ENTER_NOAPI_NOINIT(H5O_dtype_copy);
+ FUNC_ENTER_NOAPI_NOINIT(H5O_dtype_copy)
/* check args */
- assert(src);
+ HDassert(src);
- /* copy */
- if (NULL == (dst = H5T_copy(src, H5T_COPY_ALL)))
+ /* Copy */
+ if(NULL == (dst = H5T_copy(src, H5T_COPY_ALL)))
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, NULL, "can't copy type")
- /* was result already allocated? */
- if (_dst) {
+ /* Was result already allocated? */
+ if(_dst) {
*((H5T_t *) _dst) = *dst;
- H5FL_FREE(H5T_t,dst);
+ H5FL_FREE(H5T_t, dst);
dst = (H5T_t *) _dst;
- }
+ } /* end if */
/* Set return value */
- ret_value=dst;
+ ret_value = dst;
done:
- FUNC_LEAVE_NOAPI(ret_value);
-}
+ FUNC_LEAVE_NOAPI(ret_value)
+} /* end H5O_dtype_copy() */
/*--------------------------------------------------------------------------