From d29082f1659e2b5faa5fda61003b792cc5c9c4c7 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sat, 20 Aug 2005 12:49:41 -0500 Subject: [svn-r11280] Purpose: Code cleanup Description: Clean up unused variables & use portability macros better Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest --- src/H5FDfamily.c | 1 - src/H5FDmpiposix.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/H5FDfamily.c b/src/H5FDfamily.c index 76bb986..0e4a453 100644 --- a/src/H5FDfamily.c +++ b/src/H5FDfamily.c @@ -578,7 +578,6 @@ done: static hsize_t H5FD_family_sb_size(H5FD_t UNUSED *_file) { - H5FD_family_t *file = (H5FD_family_t*)_file; hsize_t ret_value = 0; /*size of header*/ FUNC_ENTER_NOAPI(H5FD_family_sb_size, UFAIL) diff --git a/src/H5FDmpiposix.c b/src/H5FDmpiposix.c index 16c4de6..bce6abb 100644 --- a/src/H5FDmpiposix.c +++ b/src/H5FDmpiposix.c @@ -727,7 +727,7 @@ H5FD_mpiposix_open(const char *name, unsigned flags, hid_t fapl_id, gpfsFcntlHeader_t hdr; gpfsFreeRange_t fr; } hint; - memset(&hint, 0, sizeof hint); + HDmemset(&hint, 0, sizeof hint); hint.hdr.totalLength = sizeof hint; hint.hdr.fcntlVersion = GPFS_FCNTL_CURRENT_VERSION; hint.fr.structLen = sizeof hint.fr; @@ -1273,7 +1273,7 @@ H5FD_mpiposix_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, gpfsFcntlHeader_t hdr; gpfsMultipleAccessRange_t mar; } hint; - memset(&hint, 0, sizeof hint); + HDmemset(&hint, 0, sizeof hint); hint.hdr.totalLength = sizeof hint; hint.hdr.fcntlVersion = GPFS_FCNTL_CURRENT_VERSION; hint.mar.structLen = sizeof hint.mar; -- cgit v0.12