summaryrefslogtreecommitdiffstats
path: root/src/H5FD.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-10-30 15:58:46 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-10-30 15:58:46 (GMT)
commit25f3bf9011ad0876998a1db37f21eb7a214b93d4 (patch)
tree912ed6ade37d6b190b6e2b989125e331ba43e27b /src/H5FD.c
parent87411d7b2d845d52bdbde7fcc473220c22936a47 (diff)
downloadhdf5-25f3bf9011ad0876998a1db37f21eb7a214b93d4.zip
hdf5-25f3bf9011ad0876998a1db37f21eb7a214b93d4.tar.gz
hdf5-25f3bf9011ad0876998a1db37f21eb7a214b93d4.tar.bz2
[svn-r12828] Description:
Clean up compiler warnings... Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'src/H5FD.c')
-rw-r--r--src/H5FD.c28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/H5FD.c b/src/H5FD.c
index 58e6188..d49192b 100644
--- a/src/H5FD.c
+++ b/src/H5FD.c
@@ -3746,20 +3746,22 @@ done:
*
*--------------------------------------------------------------------------
*/
-herr_t H5FDget_vfd_handle(H5FD_t *file, hid_t fapl, void** file_handle)
+herr_t
+H5FDget_vfd_handle(H5FD_t *file, hid_t fapl, void** file_handle)
{
herr_t ret_value;
FUNC_ENTER_API(H5FDget_vfd_handle, FAIL)
/* Check arguments */
- assert(file);
- assert(file_handle);
- ret_value=H5FD_get_vfd_handle(file, fapl, file_handle);
+ HDassert(file);
+ HDassert(file_handle);
+
+ ret_value = H5FD_get_vfd_handle(file, fapl, file_handle);
done:
FUNC_LEAVE_API(ret_value)
-}
+} /* end H5FDget_vfd_handle() */
/*--------------------------------------------------------------------------
@@ -3776,21 +3778,23 @@ done:
*
*--------------------------------------------------------------------------
*/
-herr_t H5FD_get_vfd_handle(H5FD_t *file, hid_t fapl, void** file_handle)
+herr_t
+H5FD_get_vfd_handle(H5FD_t *file, hid_t fapl, void** file_handle)
{
herr_t ret_value = SUCCEED;
FUNC_ENTER_NOAPI(H5FD_get_vfd_handle, FAIL)
- assert(file_handle);
- if(NULL==file->cls->get_handle)
- HGOTO_ERROR(H5E_VFL, H5E_UNSUPPORTED, NULL, "file driver has no `get_vfd_handle' method");
- if((ret_value=file->cls->get_handle(file, fapl, file_handle)) < 0)
- HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "can't get file handle for file driver");
+ HDassert(file_handle);
+
+ if(NULL == file->cls->get_handle)
+ HGOTO_ERROR(H5E_VFL, H5E_UNSUPPORTED, FAIL, "file driver has no `get_vfd_handle' method")
+ if((ret_value = file->cls->get_handle(file, fapl, file_handle)) < 0)
+ HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "can't get file handle for file driver")
done:
FUNC_LEAVE_NOAPI(ret_value)
-}
+} /* end H5FD_get_vfd_handle() */
/*-------------------------------------------------------------------------