summaryrefslogtreecommitdiffstats
path: root/src/H5MM.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-09-12 15:30:32 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-09-12 15:30:32 (GMT)
commit99e331190948cab9e3f2ecc539af421c3beecfcf (patch)
treea441b772d90317db5ae23799baaca981cfccea1c /src/H5MM.c
parentd3a12e1058e9afcb77b265a88690f1d3d5190fd7 (diff)
downloadhdf5-99e331190948cab9e3f2ecc539af421c3beecfcf.zip
hdf5-99e331190948cab9e3f2ecc539af421c3beecfcf.tar.gz
hdf5-99e331190948cab9e3f2ecc539af421c3beecfcf.tar.bz2
[svn-r12662] Description:
Whitespace/formatting/compiler warning cleanup. Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5MM.c')
-rw-r--r--src/H5MM.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/H5MM.c b/src/H5MM.c
index 415b2e2..afe7a3a 100644
--- a/src/H5MM.c
+++ b/src/H5MM.c
@@ -165,29 +165,24 @@ done:
* matzke@llnl.gov
* Jul 10 1997
*
- * Modifications:
- *
*-------------------------------------------------------------------------
*/
char *
H5MM_xstrdup(const char *s)
{
- char *ret_value=NULL;
+ char *ret_value = NULL;
/* Use FUNC_ENTER_NOAPI_NOINIT_NOFUNC here to avoid performance issues */
- FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5MM_xstrdup);
+ FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5MM_xstrdup)
- if (s) {
+ if(s) {
ret_value = H5MM_malloc(HDstrlen(s) + 1);
- assert (ret_value);
+ HDassert(ret_value);
HDstrcpy(ret_value, s);
} /* end if */
-#ifdef LATER
-done:
-#endif /* LATER */
- FUNC_LEAVE_NOAPI(ret_value);
-}
+ FUNC_LEAVE_NOAPI(ret_value)
+} /* end H5MM_xstrdup() */
/*-------------------------------------------------------------------------