diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-10-16 22:53:56 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-10-16 22:53:56 (GMT) |
commit | 84bf19bec42e2c53114727df2e239aa3fecb1071 (patch) | |
tree | a16377205eda598abfc6d37b2a68113dd8060816 /src/H5Ocont.c | |
parent | 775bd09974b4681672bce3c1a10948bad5d482da (diff) | |
download | hdf5-84bf19bec42e2c53114727df2e239aa3fecb1071.zip hdf5-84bf19bec42e2c53114727df2e239aa3fecb1071.tar.gz hdf5-84bf19bec42e2c53114727df2e239aa3fecb1071.tar.bz2 |
[svn-r12767] Description:
Code cleanup to improve formatting & reduce compiler warnings.
Tested on:
Linux/32 2.6 (chicago)
Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5Ocont.c')
-rw-r--r-- | src/H5Ocont.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/H5Ocont.c b/src/H5Ocont.c index 13a9d47..4d84b1c 100644 --- a/src/H5Ocont.c +++ b/src/H5Ocont.c @@ -135,19 +135,21 @@ H5O_cont_encode(H5F_t *f, uint8_t *p, const void *_mesg) { const H5O_cont_t *cont = (const H5O_cont_t *) _mesg; - FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_cont_encode); + FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_cont_encode) /* check args */ - assert(f); - assert(p); - assert(cont); + HDassert(f); + HDassert(p); + HDassert(cont); + HDassert(H5F_addr_defined(cont->addr)); + HDassert(cont->size > 0); /* encode */ H5F_addr_encode(f, &p, cont->addr); H5F_ENCODE_LENGTH(f, p, cont->size); - FUNC_LEAVE_NOAPI(SUCCEED); -} + FUNC_LEAVE_NOAPI(SUCCEED) +} /* end H5O_cont_encode() */ /*------------------------------------------------------------------------- |