summaryrefslogtreecommitdiffstats
path: root/src/H5FDvfd_swmr.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-07-10 21:04:19 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-07-10 21:04:19 (GMT)
commit9907d5fdcd64a92c3cdf59e504b966392095c182 (patch)
treed0885128266690c04adad07a10fbe36e594463f0 /src/H5FDvfd_swmr.c
parent3553c7617dc80428da8dcf77120820a3b11f5033 (diff)
downloadhdf5-9907d5fdcd64a92c3cdf59e504b966392095c182.zip
hdf5-9907d5fdcd64a92c3cdf59e504b966392095c182.tar.gz
hdf5-9907d5fdcd64a92c3cdf59e504b966392095c182.tar.bz2
Be brief: remove gratuitous cast of _xfree(). Use reference to member `pub`
instead of cast to H5FD_t *.
Diffstat (limited to 'src/H5FDvfd_swmr.c')
-rw-r--r--src/H5FDvfd_swmr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5FDvfd_swmr.c b/src/H5FDvfd_swmr.c
index 2acdca4..dc09618 100644
--- a/src/H5FDvfd_swmr.c
+++ b/src/H5FDvfd_swmr.c
@@ -376,12 +376,12 @@ finish:
done:
/* Free the buffer */
if(vfd_swmr_config)
- vfd_swmr_config = (H5F_vfd_swmr_config_t *)H5MM_xfree(vfd_swmr_config);
+ vfd_swmr_config = H5MM_xfree(vfd_swmr_config);
/* Handle closing if error */
if(NULL == ret_value && file) {
- if(H5FD_vfd_swmr_close((H5FD_t *)file) < 0)
+ if(H5FD_vfd_swmr_close(&file->pub) < 0)
HDONE_ERROR(H5E_FILE, H5E_CANTCLOSEFILE, NULL, "error from closing")