diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2006-09-12 15:30:32 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2006-09-12 15:30:32 (GMT) |
commit | 99e331190948cab9e3f2ecc539af421c3beecfcf (patch) | |
tree | a441b772d90317db5ae23799baaca981cfccea1c /src/H5MM.c | |
parent | d3a12e1058e9afcb77b265a88690f1d3d5190fd7 (diff) | |
download | hdf5-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.c | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -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() */ /*------------------------------------------------------------------------- |