summaryrefslogtreecommitdiffstats
path: root/test/direct_chunk.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-29 13:36:40 (GMT)
committerGitHub <noreply@github.com>2022-07-29 13:36:40 (GMT)
commit40fc2cca16cd562954d3b724fa56badb3b9da72b (patch)
tree536b4bb51328af98ead7dfa1951f36b47f9b752a /test/direct_chunk.c
parentc63dfb0fd3345ecb33014612f94d3959f147be03 (diff)
downloadhdf5-40fc2cca16cd562954d3b724fa56badb3b9da72b.zip
hdf5-40fc2cca16cd562954d3b724fa56badb3b9da72b.tar.gz
hdf5-40fc2cca16cd562954d3b724fa56badb3b9da72b.tar.bz2
1.10 clang 13 format #1933 (#1940)
* clang 13 format #1933 * Correct workflow
Diffstat (limited to 'test/direct_chunk.c')
-rw-r--r--test/direct_chunk.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/direct_chunk.c b/test/direct_chunk.c
index b2b7cba..1c4d6d7 100644
--- a/test/direct_chunk.c
+++ b/test/direct_chunk.c
@@ -142,11 +142,11 @@ test_direct_chunk_write(hid_t file)
size_t buf_size = CHUNK_NX * CHUNK_NY * sizeof(int);
const Bytef *z_src = (const Bytef *)(direct_buf);
- Bytef * z_dst = NULL; /*destination buffer */
+ Bytef *z_dst = NULL; /*destination buffer */
uLongf z_dst_nbytes = (uLongf)DEFLATE_SIZE_ADJUST(buf_size);
uLong z_src_nbytes = (uLong)buf_size;
int aggression = 9; /* Compression aggression setting */
- void * outbuf = NULL; /* Pointer to new buffer */
+ void *outbuf = NULL; /* Pointer to new buffer */
hsize_t start[2]; /* Start of hyperslab */
hsize_t stride[2]; /* Stride of hyperslab */
@@ -682,7 +682,7 @@ static size_t
filter_bogus1(unsigned int flags, size_t H5_ATTR_UNUSED cd_nelmts,
const unsigned int H5_ATTR_UNUSED *cd_values, size_t nbytes, size_t *buf_size, void **buf)
{
- int * int_ptr = (int *)*buf; /* Pointer to the data values */
+ int *int_ptr = (int *)*buf; /* Pointer to the data values */
size_t buf_left = *buf_size; /* Amount of data buffer left to process */
if (flags & H5Z_FLAG_REVERSE) { /* read */
@@ -718,7 +718,7 @@ static size_t
filter_bogus2(unsigned int flags, size_t H5_ATTR_UNUSED cd_nelmts,
const unsigned int H5_ATTR_UNUSED *cd_values, size_t nbytes, size_t *buf_size, void **buf)
{
- int * int_ptr = (int *)*buf; /* Pointer to the data values */
+ int *int_ptr = (int *)*buf; /* Pointer to the data values */
size_t buf_left = *buf_size; /* Amount of data buffer left to process */
if (flags & H5Z_FLAG_REVERSE) { /* read */
@@ -1463,7 +1463,7 @@ test_direct_chunk_read_no_cache(hid_t file)
Bytef *z_dst = (Bytef *)(direct_buf);
uLong z_dst_nbytes = (uLong)buf_size;
int aggression = 9; /* Compression aggression setting */
- void * outbuf = NULL; /* Pointer to new buffer */
+ void *outbuf = NULL; /* Pointer to new buffer */
hsize_t start[2]; /* Start of hyperslab */
hsize_t stride[2]; /* Stride of hyperslab */
@@ -1636,12 +1636,12 @@ test_direct_chunk_read_cache(hid_t file, hbool_t flush)
hsize_t offset[2]; /* chunk offset used for H5Dread_chunk */
size_t buf_size = CHUNK_NX * CHUNK_NY * sizeof(int);
- Bytef * z_src = NULL; /* source buffer */
+ Bytef *z_src = NULL; /* source buffer */
uLongf z_src_nbytes = (uLongf)DEFLATE_SIZE_ADJUST(buf_size);
- Bytef * z_dst = (Bytef *)(direct_buf);
+ Bytef *z_dst = (Bytef *)(direct_buf);
uLong z_dst_nbytes = (uLong)buf_size;
int aggression = 9; /* Compression aggression setting */
- void * outbuf = NULL; /* Pointer to new buffer */
+ void *outbuf = NULL; /* Pointer to new buffer */
hsize_t read_buf_size = 0;
hsize_t start[2]; /* Start of hyperslab */
@@ -2167,7 +2167,7 @@ test_single_chunk(unsigned config)
else
/* Write the data to the dataset */
if (H5Dwrite(did, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, (void *)wdata) < 0)
- FAIL_STACK_ERROR;
+ FAIL_STACK_ERROR;
/*
* Close and release resources.
@@ -2209,7 +2209,7 @@ test_single_chunk(unsigned config)
else
/* Read the data */
if (H5Dread(did, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, rdata) < 0)
- FAIL_STACK_ERROR;
+ FAIL_STACK_ERROR;
/* Verify that the data read was correct. */
for (i = 0; i < DIM0; i++)