summaryrefslogtreecommitdiffstats
path: root/src/H5Dbtree.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-27 17:28:11 (GMT)
committerGitHub <noreply@github.com>2022-07-27 17:28:11 (GMT)
commita0a1959c58973095194f2d9ac5f9b13bb7b14fb4 (patch)
tree3f36cbd14d9ede9f00c4c26affb9ecab5d1a860f /src/H5Dbtree.c
parentf0690f13fb914ff39a32d88801eabcef759a0163 (diff)
downloadhdf5-a0a1959c58973095194f2d9ac5f9b13bb7b14fb4.zip
hdf5-a0a1959c58973095194f2d9ac5f9b13bb7b14fb4.tar.gz
hdf5-a0a1959c58973095194f2d9ac5f9b13bb7b14fb4.tar.bz2
clang 13 format #1933 (#1939)
Diffstat (limited to 'src/H5Dbtree.c')
-rw-r--r--src/H5Dbtree.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/H5Dbtree.c b/src/H5Dbtree.c
index 861b428..f5c2a2e 100644
--- a/src/H5Dbtree.c
+++ b/src/H5Dbtree.c
@@ -75,7 +75,7 @@ typedef struct H5D_btree_key_t {
typedef struct H5D_btree_it_ud_t {
H5D_chunk_common_ud_t common; /* Common info for B-tree user data (must be first) */
H5D_chunk_cb_func_t cb; /* Chunk callback routine */
- void * udata; /* User data for chunk callback routine */
+ void *udata; /* User data for chunk callback routine */
} H5D_btree_it_ud_t;
/* B-tree callback info for debugging */
@@ -97,7 +97,7 @@ static int H5D__btree_idx_iterate_cb(H5F_t *f, const void *left_key, haddr_t add
void *_udata);
/* B-tree callbacks */
-static H5UC_t * H5D__btree_get_shared(const H5F_t *f, const void *_udata);
+static H5UC_t *H5D__btree_get_shared(const H5F_t *f, const void *_udata);
static herr_t H5D__btree_new_node(H5F_t *f, H5B_ins_t, void *_lt_key, void *_udata, void *_rt_key,
haddr_t *addr_p /*out*/);
static int H5D__btree_cmp2(void *_lt_key, void *_udata, void *_rt_key);
@@ -241,7 +241,7 @@ H5D__btree_new_node(H5F_t H5_ATTR_NDEBUG_UNUSED *f, H5B_ins_t op, void *_lt_key,
{
H5D_btree_key_t *lt_key = (H5D_btree_key_t *)_lt_key;
H5D_btree_key_t *rt_key = (H5D_btree_key_t *)_rt_key;
- H5D_chunk_ud_t * udata = (H5D_chunk_ud_t *)_udata;
+ H5D_chunk_ud_t *udata = (H5D_chunk_ud_t *)_udata;
unsigned u;
herr_t ret_value = SUCCEED; /* Return value */
@@ -307,8 +307,8 @@ H5D__btree_new_node(H5F_t H5_ATTR_NDEBUG_UNUSED *f, H5B_ins_t op, void *_lt_key,
static int
H5D__btree_cmp2(void *_lt_key, void *_udata, void *_rt_key)
{
- H5D_btree_key_t * lt_key = (H5D_btree_key_t *)_lt_key;
- H5D_btree_key_t * rt_key = (H5D_btree_key_t *)_rt_key;
+ H5D_btree_key_t *lt_key = (H5D_btree_key_t *)_lt_key;
+ H5D_btree_key_t *rt_key = (H5D_btree_key_t *)_rt_key;
H5D_chunk_common_ud_t *udata = (H5D_chunk_common_ud_t *)_udata;
int ret_value = -1; /* Return value */
@@ -355,8 +355,8 @@ H5D__btree_cmp2(void *_lt_key, void *_udata, void *_rt_key)
static int
H5D__btree_cmp3(void *_lt_key, void *_udata, void *_rt_key)
{
- H5D_btree_key_t * lt_key = (H5D_btree_key_t *)_lt_key;
- H5D_btree_key_t * rt_key = (H5D_btree_key_t *)_rt_key;
+ H5D_btree_key_t *lt_key = (H5D_btree_key_t *)_lt_key;
+ H5D_btree_key_t *rt_key = (H5D_btree_key_t *)_rt_key;
H5D_chunk_common_ud_t *udata = (H5D_chunk_common_ud_t *)_udata;
int ret_value = 0;
@@ -418,7 +418,7 @@ H5D__btree_cmp3(void *_lt_key, void *_udata, void *_rt_key)
static htri_t
H5D__btree_found(H5F_t H5_ATTR_UNUSED *f, haddr_t addr, const void *_lt_key, void *_udata)
{
- H5D_chunk_ud_t * udata = (H5D_chunk_ud_t *)_udata;
+ H5D_chunk_ud_t *udata = (H5D_chunk_ud_t *)_udata;
const H5D_btree_key_t *lt_key = (const H5D_btree_key_t *)_lt_key;
unsigned u;
htri_t ret_value = TRUE; /* Return value */
@@ -519,7 +519,7 @@ H5D__btree_insert(H5F_t H5_ATTR_NDEBUG_UNUSED *f, haddr_t H5_ATTR_NDEBUG_UNUSED
H5D_btree_key_t *lt_key = (H5D_btree_key_t *)_lt_key;
H5D_btree_key_t *md_key = (H5D_btree_key_t *)_md_key;
H5D_btree_key_t *rt_key = (H5D_btree_key_t *)_rt_key;
- H5D_chunk_ud_t * udata = (H5D_chunk_ud_t *)_udata;
+ H5D_chunk_ud_t *udata = (H5D_chunk_ud_t *)_udata;
int cmp;
unsigned u;
H5B_ins_t ret_value = H5B_INS_ERROR; /* Return value */
@@ -638,7 +638,7 @@ static herr_t
H5D__btree_decode_key(const H5B_shared_t *shared, const uint8_t *raw, void *_key)
{
const H5O_layout_chunk_t *layout; /* Chunk layout description */
- H5D_btree_key_t * key = (H5D_btree_key_t *)_key; /* Pointer to decoded key */
+ H5D_btree_key_t *key = (H5D_btree_key_t *)_key; /* Pointer to decoded key */
hsize_t tmp_offset; /* Temporary coordinate offset, from file */
unsigned u; /* Local index variable */
herr_t ret_value = SUCCEED; /* Return value */
@@ -688,7 +688,7 @@ static herr_t
H5D__btree_encode_key(const H5B_shared_t *shared, uint8_t *raw, const void *_key)
{
const H5O_layout_chunk_t *layout; /* Chunk layout description */
- const H5D_btree_key_t * key = (const H5D_btree_key_t *)_key;
+ const H5D_btree_key_t *key = (const H5D_btree_key_t *)_key;
hsize_t tmp_offset; /* Temporary coordinate offset, from file */
unsigned u; /* Local index variable */
@@ -793,7 +793,7 @@ done:
static herr_t
H5D__btree_shared_create(const H5F_t *f, H5O_storage_chunk_t *store, const H5O_layout_chunk_t *layout)
{
- H5B_shared_t * shared; /* Shared B-tree node info */
+ H5B_shared_t *shared; /* Shared B-tree node info */
H5O_layout_chunk_t *my_layout = NULL; /* Pointer to copy of layout info */
size_t sizeof_rkey; /* Size of raw (disk) key */
herr_t ret_value = SUCCEED; /* Return value */
@@ -1030,7 +1030,7 @@ static int
H5D__btree_idx_iterate_cb(H5F_t H5_ATTR_UNUSED *f, const void *_lt_key, haddr_t addr,
const void H5_ATTR_UNUSED *_rt_key, void *_udata)
{
- H5D_btree_it_ud_t * udata = (H5D_btree_it_ud_t *)_udata; /* User data */
+ H5D_btree_it_ud_t *udata = (H5D_btree_it_ud_t *)_udata; /* User data */
const H5D_btree_key_t *lt_key = (const H5D_btree_key_t *)_lt_key; /* B-tree key for chunk */
H5D_chunk_rec_t chunk_rec; /* Generic chunk record for callback */
int ret_value = -1; /* Return value */