summaryrefslogtreecommitdiffstats
path: root/src/H5Cimage.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/H5Cimage.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/H5Cimage.c')
-rw-r--r--src/H5Cimage.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/H5Cimage.c b/src/H5Cimage.c
index 899d6d7..2a94fca 100644
--- a/src/H5Cimage.c
+++ b/src/H5Cimage.c
@@ -277,7 +277,7 @@ H5C__construct_cache_image_buffer(H5F_t *f, H5C_t *cache_ptr)
{
uint32_t old_chksum;
const uint8_t *q;
- H5C_t * fake_cache_ptr = NULL;
+ H5C_t *fake_cache_ptr = NULL;
unsigned v;
herr_t status; /* Status from decoding */
@@ -356,7 +356,7 @@ H5C__construct_cache_image_buffer(H5F_t *f, H5C_t *cache_ptr)
/* compute the checksum */
old_chksum = chksum;
chksum = H5_checksum_metadata(cache_ptr->image_buffer,
- (size_t)(cache_ptr->image_data_len - H5F_SIZEOF_CHKSUM), 0);
+ (size_t)(cache_ptr->image_data_len - H5F_SIZEOF_CHKSUM), 0);
HDassert(chksum == old_chksum);
fake_cache_ptr->image_entries = (H5C_image_entry_t *)H5MM_xfree(fake_cache_ptr->image_entries);
@@ -467,7 +467,7 @@ H5C__deserialize_prefetched_entry(H5F_t *f, H5C_t *cache_ptr, H5C_cache_entry_t
* dirtied during deserialize
*/
size_t len; /* Size of image in file */
- void * thing = NULL; /* Pointer to thing loaded */
+ void *thing = NULL; /* Pointer to thing loaded */
H5C_cache_entry_t *pf_entry_ptr; /* pointer to the prefetched entry */
/* supplied in *entry_ptr_ptr. */
H5C_cache_entry_t *ds_entry_ptr; /* Alias for thing loaded, as cache
@@ -1273,7 +1273,7 @@ H5C__image_entry_cmp(const void *_entry1, const void *_entry2)
herr_t
H5C__prep_image_for_file_close(H5F_t *f, hbool_t *image_generated)
{
- H5C_t * cache_ptr = NULL;
+ H5C_t *cache_ptr = NULL;
haddr_t eoa_frag_addr = HADDR_UNDEF;
hsize_t eoa_frag_size = 0;
herr_t ret_value = SUCCEED; /* Return value */
@@ -1417,7 +1417,8 @@ H5C__prep_image_for_file_close(H5F_t *f, hbool_t *image_generated)
if (HADDR_UNDEF == (cache_ptr->image_addr = H5FD_alloc(f->shared->lf, H5FD_MEM_SUPER, f,
(hsize_t)(cache_ptr->image_data_len),
&eoa_frag_addr, &eoa_frag_size)))
- HGOTO_ERROR(H5E_CACHE, H5E_NOSPACE, FAIL, "can't allocate file space for metadata cache image")
+ HGOTO_ERROR(H5E_CACHE, H5E_NOSPACE, FAIL,
+ "can't allocate file space for metadata cache image")
/* Make note of the eoa after allocation of the cache image
* block. This value is used for sanity checking when we
@@ -1846,7 +1847,7 @@ H5C__decode_cache_image_entry(const H5F_t *f, const H5C_t *cache_ptr, const uint
hbool_t is_fd_child = FALSE; /* Only used in assertions */
haddr_t addr;
hsize_t size = 0;
- void * image_ptr;
+ void *image_ptr;
uint8_t flags = 0;
uint8_t type_id;
uint8_t ring;
@@ -1854,10 +1855,10 @@ H5C__decode_cache_image_entry(const H5F_t *f, const H5C_t *cache_ptr, const uint
uint16_t fd_child_count;
uint16_t fd_dirty_child_count;
uint16_t fd_parent_count;
- haddr_t * fd_parent_addrs = NULL;
+ haddr_t *fd_parent_addrs = NULL;
int32_t lru_rank;
H5C_image_entry_t *ie_ptr = NULL;
- const uint8_t * p;
+ const uint8_t *p;
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_PACKAGE
@@ -2204,7 +2205,7 @@ H5C__encode_cache_image_entry(H5F_t *f, H5C_t *cache_ptr, uint8_t **buf, unsigne
{
H5C_image_entry_t *ie_ptr; /* Pointer to entry to encode */
uint8_t flags = 0; /* Flags for entry */
- uint8_t * p; /* Pointer into cache image buffer */
+ uint8_t *p; /* Pointer into cache image buffer */
unsigned u; /* Local index value */
herr_t ret_value = SUCCEED; /* Return value */
@@ -3019,7 +3020,7 @@ H5C__reconstruct_cache_contents(H5F_t *f, H5C_t *cache_ptr)
{
H5C_cache_entry_t *pf_entry_ptr; /* Pointer to prefetched entry */
H5C_cache_entry_t *parent_ptr; /* Pointer to parent of prefetched entry */
- const uint8_t * p; /* Pointer into image buffer */
+ const uint8_t *p; /* Pointer into image buffer */
unsigned u, v; /* Local index variable */
herr_t ret_value = SUCCEED; /* Return value */
@@ -3231,7 +3232,7 @@ H5C__reconstruct_cache_entry(const H5F_t *f, H5C_t *cache_ptr, const uint8_t **b
hbool_t is_fd_parent = FALSE;
hbool_t is_fd_child = FALSE;
#endif /* NDEBUG */ /* only used in assertions */
- const uint8_t * p;
+ const uint8_t *p;
hbool_t file_is_rw;
H5C_cache_entry_t *ret_value = NULL; /* Return value */
@@ -3398,7 +3399,7 @@ done:
static herr_t
H5C__write_cache_image_superblock_msg(H5F_t *f, hbool_t create)
{
- H5C_t * cache_ptr;
+ H5C_t *cache_ptr;
H5O_mdci_t mdci_msg; /* metadata cache image message */
/* to insert in the superblock */
/* extension. */