summaryrefslogtreecommitdiffstats
path: root/src/H5FDfamily.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-26 21:45:46 (GMT)
committerGitHub <noreply@github.com>2022-07-26 21:45:46 (GMT)
commitae414872f50187e64cbd6cc8f076c22cf5df2d53 (patch)
treeb616f33f5daa89f213e7c64e04c63afde906e939 /src/H5FDfamily.c
parent213eac2588369f75a11df6bb1788dde33c4b82e2 (diff)
downloadhdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.zip
hdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.tar.gz
hdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.tar.bz2
Develop clang 13 format (#1933)
* Update format source to clang 13 * More format changes
Diffstat (limited to 'src/H5FDfamily.c')
-rw-r--r--src/H5FDfamily.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/H5FDfamily.c b/src/H5FDfamily.c
index 3107c8f..617f68b 100644
--- a/src/H5FDfamily.c
+++ b/src/H5FDfamily.c
@@ -63,7 +63,7 @@ typedef struct H5FD_family_t {
unsigned amembs; /*number of member slots allocated */
H5FD_t **memb; /*dynamic array of member pointers */
haddr_t eoa; /*end of allocated addresses */
- char * name; /*name generator printf format */
+ char *name; /*name generator printf format */
unsigned flags; /*flags for opening additional members */
/* Information from properties set by 'h5repart' tool */
@@ -82,12 +82,12 @@ typedef struct H5FD_family_fapl_t {
/* Private routines */
static herr_t H5FD__family_get_default_config(H5FD_family_fapl_t *fa_out);
-static char * H5FD__family_get_default_printf_filename(const char *old_filename);
+static char *H5FD__family_get_default_printf_filename(const char *old_filename);
/* Callback prototypes */
static herr_t H5FD__family_term(void);
-static void * H5FD__family_fapl_get(H5FD_t *_file);
-static void * H5FD__family_fapl_copy(const void *_old_fa);
+static void *H5FD__family_fapl_get(H5FD_t *_file);
+static void *H5FD__family_fapl_copy(const void *_old_fa);
static herr_t H5FD__family_fapl_free(void *_fa);
static hsize_t H5FD__family_sb_size(H5FD_t *_file);
static herr_t H5FD__family_sb_encode(H5FD_t *_file, char *name /*out*/, unsigned char *buf /*out*/);
@@ -221,9 +221,9 @@ H5FD__family_get_default_printf_filename(const char *old_filename)
const char *suffix = "-%06d";
size_t old_filename_len = 0;
size_t new_filename_len = 0;
- char * file_extension = NULL;
- char * tmp_buffer = NULL;
- char * ret_value = NULL;
+ char *file_extension = NULL;
+ char *tmp_buffer = NULL;
+ char *ret_value = NULL;
FUNC_ENTER_PACKAGE
@@ -346,7 +346,7 @@ H5Pset_fapl_family(hid_t fapl_id, hsize_t msize, hid_t memb_fapl_id)
{
herr_t ret_value;
H5FD_family_fapl_t fa = {0, H5I_INVALID_HID};
- H5P_genplist_t * plist; /* Property list pointer */
+ H5P_genplist_t *plist; /* Property list pointer */
FUNC_ENTER_API(FAIL)
H5TRACE3("e", "ihi", fapl_id, msize, memb_fapl_id);
@@ -393,7 +393,7 @@ done:
herr_t
H5Pget_fapl_family(hid_t fapl_id, hsize_t *msize /*out*/, hid_t *memb_fapl_id /*out*/)
{
- H5P_genplist_t * plist; /* Property list pointer */
+ H5P_genplist_t *plist; /* Property list pointer */
const H5FD_family_fapl_t *fa;
herr_t ret_value = SUCCEED; /* Return value */
@@ -436,10 +436,10 @@ done:
static void *
H5FD__family_fapl_get(H5FD_t *_file)
{
- H5FD_family_t * file = (H5FD_family_t *)_file;
+ H5FD_family_t *file = (H5FD_family_t *)_file;
H5FD_family_fapl_t *fa = NULL;
- H5P_genplist_t * plist; /* Property list pointer */
- void * ret_value = NULL; /* Return value */
+ H5P_genplist_t *plist; /* Property list pointer */
+ void *ret_value = NULL; /* Return value */
FUNC_ENTER_PACKAGE
@@ -480,9 +480,9 @@ static void *
H5FD__family_fapl_copy(const void *_old_fa)
{
const H5FD_family_fapl_t *old_fa = (const H5FD_family_fapl_t *)_old_fa;
- H5FD_family_fapl_t * new_fa = NULL;
- H5P_genplist_t * plist; /* Property list pointer */
- void * ret_value = NULL; /* Return value */
+ H5FD_family_fapl_t *new_fa = NULL;
+ H5P_genplist_t *plist; /* Property list pointer */
+ void *ret_value = NULL; /* Return value */
FUNC_ENTER_PACKAGE
@@ -694,11 +694,11 @@ static H5FD_t *
H5FD__family_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr)
{
H5FD_family_t *file = NULL;
- char * memb_name = NULL, *temp = NULL;
+ char *memb_name = NULL, *temp = NULL;
hsize_t eof = HADDR_UNDEF;
hbool_t default_config = FALSE;
unsigned t_flags = flags & ~H5F_ACC_CREAT;
- H5FD_t * ret_value = NULL;
+ H5FD_t *ret_value = NULL;
FUNC_ENTER_PACKAGE
@@ -726,7 +726,7 @@ H5FD__family_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxad
default_config = TRUE;
} /* end if */
else {
- H5P_genplist_t * plist; /* Property list pointer */
+ H5P_genplist_t *plist; /* Property list pointer */
const H5FD_family_fapl_t *fa;
H5FD_family_fapl_t default_fa;
@@ -1041,7 +1041,7 @@ H5FD__family_set_eoa(H5FD_t *_file, H5FD_mem_t type, haddr_t abs_eoa)
{
H5FD_family_t *file = (H5FD_family_t *)_file;
haddr_t addr = abs_eoa;
- char * memb_name = NULL;
+ char *memb_name = NULL;
unsigned u; /* Local index variable */
herr_t ret_value = SUCCEED; /* Return value */
@@ -1176,7 +1176,7 @@ H5FD__family_get_eof(const H5FD_t *_file, H5FD_mem_t type)
static herr_t
H5FD__family_get_handle(H5FD_t *_file, hid_t fapl, void **file_handle)
{
- H5FD_family_t * file = (H5FD_family_t *)_file;
+ H5FD_family_t *file = (H5FD_family_t *)_file;
H5P_genplist_t *plist;
hsize_t offset;
int memb;
@@ -1221,8 +1221,8 @@ static herr_t
H5FD__family_read(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size,
void *_buf /*out*/)
{
- H5FD_family_t * file = (H5FD_family_t *)_file;
- unsigned char * buf = (unsigned char *)_buf;
+ H5FD_family_t *file = (H5FD_family_t *)_file;
+ unsigned char *buf = (unsigned char *)_buf;
haddr_t sub;
size_t req;
hsize_t tempreq;
@@ -1286,13 +1286,13 @@ done:
static herr_t
H5FD__family_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t size, const void *_buf)
{
- H5FD_family_t * file = (H5FD_family_t *)_file;
+ H5FD_family_t *file = (H5FD_family_t *)_file;
const unsigned char *buf = (const unsigned char *)_buf;
haddr_t sub;
size_t req;
hsize_t tempreq;
unsigned u; /* Local index variable */
- H5P_genplist_t * plist; /* Property list pointer */
+ H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_PACKAGE
@@ -1488,14 +1488,14 @@ done:
static herr_t
H5FD__family_delete(const char *filename, hid_t fapl_id)
{
- H5P_genplist_t * plist;
+ H5P_genplist_t *plist;
const H5FD_family_fapl_t *fa;
H5FD_family_fapl_t default_fa = {0, H5I_INVALID_HID};
hbool_t default_config = FALSE;
hid_t memb_fapl_id = H5I_INVALID_HID;
unsigned current_member;
- char * member_name = NULL;
- char * temp = NULL;
+ char *member_name = NULL;
+ char *temp = NULL;
herr_t delete_error = FAIL;
herr_t ret_value = SUCCEED;