summaryrefslogtreecommitdiffstats
path: root/tools/test
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 /tools/test
parentf0690f13fb914ff39a32d88801eabcef759a0163 (diff)
downloadhdf5-a0a1959c58973095194f2d9ac5f9b13bb7b14fb4.zip
hdf5-a0a1959c58973095194f2d9ac5f9b13bb7b14fb4.tar.gz
hdf5-a0a1959c58973095194f2d9ac5f9b13bb7b14fb4.tar.bz2
clang 13 format #1933 (#1939)
Diffstat (limited to 'tools/test')
-rw-r--r--tools/test/h5copy/dynlib_copy.c2
-rw-r--r--tools/test/h5copy/h5copygentest.c2
-rw-r--r--tools/test/h5diff/dynlib_diff.c2
-rw-r--r--tools/test/h5diff/h5diffgentest.c66
-rw-r--r--tools/test/h5dump/binread.c4
-rw-r--r--tools/test/h5dump/dynlib_dump.c2
-rw-r--r--tools/test/h5dump/h5dumpgentest.c132
-rw-r--r--tools/test/h5format_convert/h5fc_chk_idx.c4
-rw-r--r--tools/test/h5jam/getub.c6
-rw-r--r--tools/test/h5jam/h5jamgentest.c4
-rw-r--r--tools/test/h5jam/tellub.c4
-rw-r--r--tools/test/h5ls/dynlib_ls.c2
-rw-r--r--tools/test/h5repack/dynlib_rpk.c2
-rw-r--r--tools/test/h5repack/dynlib_vrpk.c2
-rw-r--r--tools/test/h5repack/h5repacktst.c26
-rw-r--r--tools/test/misc/h5clear_gentest.c2
-rw-r--r--tools/test/misc/h5perf_gentest.c16
-rw-r--r--tools/test/misc/h5repart_gentest.c2
-rw-r--r--tools/test/misc/vds/UC_1_one_dim_gen.c2
-rw-r--r--tools/test/misc/vds/UC_2_two_dims_gen.c2
-rw-r--r--tools/test/perform/chunk.c2
-rw-r--r--tools/test/perform/chunk_cache.c4
-rw-r--r--tools/test/perform/direct_write_perf.c2
-rw-r--r--tools/test/perform/overhead.c2
-rw-r--r--tools/test/perform/pio_standalone.h4
-rw-r--r--tools/test/perform/sio_standalone.h4
-rw-r--r--tools/test/perform/zip_perf.c10
27 files changed, 156 insertions, 156 deletions
diff --git a/tools/test/h5copy/dynlib_copy.c b/tools/test/h5copy/dynlib_copy.c
index b954a22..f474a55 100644
--- a/tools/test/h5copy/dynlib_copy.c
+++ b/tools/test/h5copy/dynlib_copy.c
@@ -62,7 +62,7 @@ static size_t
H5Z_filter_dynlibud(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_values, size_t nbytes,
size_t *buf_size, void **buf)
{
- char * int_ptr = (char *)*buf; /* Pointer to the data values */
+ char *int_ptr = (char *)*buf; /* Pointer to the data values */
size_t buf_left = *buf_size; /* Amount of data buffer left to process */
/* Check for the correct number of parameters */
diff --git a/tools/test/h5copy/h5copygentest.c b/tools/test/h5copy/h5copygentest.c
index 2b40470..18ae0cd 100644
--- a/tools/test/h5copy/h5copygentest.c
+++ b/tools/test/h5copy/h5copygentest.c
@@ -281,7 +281,7 @@ gent_nested_vl(hid_t loc_id)
hid_t sid, did, tid1, tid2;
hsize_t dims[1] = {2};
hvl_t buf[2];
- hvl_t * tvl;
+ hvl_t *tvl;
/* allocate and initialize VL dataset to write */
buf[0].len = 1;
diff --git a/tools/test/h5diff/dynlib_diff.c b/tools/test/h5diff/dynlib_diff.c
index 433522d..9d277e0 100644
--- a/tools/test/h5diff/dynlib_diff.c
+++ b/tools/test/h5diff/dynlib_diff.c
@@ -62,7 +62,7 @@ static size_t
H5Z_filter_dynlibud(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_values, size_t nbytes,
size_t *buf_size, void **buf)
{
- char * int_ptr = (char *)*buf; /* Pointer to the data values */
+ char *int_ptr = (char *)*buf; /* Pointer to the data values */
size_t buf_left = *buf_size; /* Amount of data buffer left to process */
/* Check for the correct number of parameters */
diff --git a/tools/test/h5diff/h5diffgentest.c b/tools/test/h5diff/h5diffgentest.c
index 6abd265..2c77e87 100644
--- a/tools/test/h5diff/h5diffgentest.c
+++ b/tools/test/h5diff/h5diffgentest.c
@@ -3427,8 +3427,8 @@ test_comp_vlen_strings(const char *fname1, const char *grp_name, int is_file_new
/* compound1 datatype */
typedef struct comp1_t {
- char * str_vlen; /* vlen string */
- char * str_vlen_repeat; /* vlen string */
+ char *str_vlen; /* vlen string */
+ char *str_vlen_repeat; /* vlen string */
char str_fixlen[FIXLEN_STR_SIZE]; /* fixed len string */
char str_fixlen_repeat[FIXLEN_STR_SIZE]; /* fixed len string */
const char *str_array_vlen[VLEN_STR_ARRY_DIM]; /* vlen string array */
@@ -3439,9 +3439,9 @@ test_comp_vlen_strings(const char *fname1, const char *grp_name, int is_file_new
/* compound2 datatype */
typedef struct comp2_t {
- char * str_vlen; /* vlen string */
+ char *str_vlen; /* vlen string */
char str_fixlen[FIXLEN_STR_SIZE]; /* fixed len string */
- char * str_vlen_repeat; /* vlen string */
+ char *str_vlen_repeat; /* vlen string */
char str_fixlen_repeat[FIXLEN_STR_SIZE]; /* fixed len string */
const char *str_array_vlen[VLEN_STR_ARRY_DIM]; /* vlen string array */
char str_array_fixlen[FIXLEN_STR_ARRY_DIM][FIXLEN_STR_ARRY_SIZE]; /* fixed len string array */
@@ -3464,9 +3464,9 @@ test_comp_vlen_strings(const char *fname1, const char *grp_name, int is_file_new
/* compound4 datatype */
typedef struct comp4_t {
char str_fixlen[FIXLEN_STR_SIZE]; /* fixed len string */
- char * str_vlen; /* vlen string */
+ char *str_vlen; /* vlen string */
char str_fixlen_repeat[FIXLEN_STR_SIZE]; /* fixed len string */
- char * str_vlen_repeat; /* vlen string */
+ char *str_vlen_repeat; /* vlen string */
char str_array_fixlen[FIXLEN_STR_ARRY_DIM][FIXLEN_STR_ARRY_SIZE]; /* fixed len string array */
const char *str_array_vlen[VLEN_STR_ARRY_DIM]; /* vlen string array */
char str_fixlen_array_again[FIXLEN_STR_ARRY_DIM][FIXLEN_STR_ARRY_SIZE]; /* fixed len string array */
@@ -3505,8 +3505,8 @@ test_comp_vlen_strings(const char *fname1, const char *grp_name, int is_file_new
const char *str_vlen_array_again[VLEN_STR_ARRY_DIM]; /* vlen string array */
char str_fixlen[FIXLEN_STR_SIZE]; /* fixed len string */
char str_fixlen_repeat[FIXLEN_STR_SIZE]; /* fixed len string */
- char * str_vlen; /* vlen string */
- char * str_vlen_repeat; /* vlen string */
+ char *str_vlen; /* vlen string */
+ char *str_vlen_repeat; /* vlen string */
} comp7_t;
/* compound8 datatype */
@@ -3516,9 +3516,9 @@ test_comp_vlen_strings(const char *fname1, const char *grp_name, int is_file_new
char str_fixlen_array_again[FIXLEN_STR_ARRY_DIM][FIXLEN_STR_ARRY_SIZE]; /* fixed len string array */
const char *str_vlen_array_again[VLEN_STR_ARRY_DIM]; /* vlen string array */
char str_fixlen[FIXLEN_STR_SIZE]; /* fixed len string */
- char * str_vlen; /* vlen string */
+ char *str_vlen; /* vlen string */
char str_fixlen_repeat[FIXLEN_STR_SIZE]; /* fixed len string */
- char * str_vlen_repeat; /* vlen string */
+ char *str_vlen_repeat; /* vlen string */
} comp8_t;
/* compound9 datatype */
@@ -3532,9 +3532,9 @@ test_comp_vlen_strings(const char *fname1, const char *grp_name, int is_file_new
hobj_ref_t objref1; /* reference */
char str_fixlen_repeat[FIXLEN_STR_SIZE]; /* fixed len string */
hobj_ref_t objref2; /* reference */
- char * str_vlen; /* vlen string */
+ char *str_vlen; /* vlen string */
int int_data2;
- char * str_vlen_repeat; /* vlen string */
+ char *str_vlen_repeat; /* vlen string */
hobj_ref_t objref3; /* reference */
int int_data3;
} comp9_t;
@@ -4730,15 +4730,15 @@ test_data_nocomparables(const char *fname, int make_diffs)
int rank_attr;
char data1_str[DIM_ARRY][STR_SIZE] = {"ab", "cd", "ef"};
herr_t status = SUCCEED;
- void * dset_data_ptr1 = NULL;
- void * dset_data_ptr2 = NULL;
- void * dset_data_ptr3 = NULL;
- void * attr_data_ptr1 = NULL;
- void * attr_data_ptr2 = NULL;
- void * attr_data_ptr3 = NULL;
- void * attr_data_ptr4 = NULL;
- void * attr2_dim_ptr = NULL;
- void * attr3_dim_ptr = NULL;
+ void *dset_data_ptr1 = NULL;
+ void *dset_data_ptr2 = NULL;
+ void *dset_data_ptr3 = NULL;
+ void *attr_data_ptr1 = NULL;
+ void *attr_data_ptr2 = NULL;
+ void *attr_data_ptr3 = NULL;
+ void *attr_data_ptr4 = NULL;
+ void *attr2_dim_ptr = NULL;
+ void *attr3_dim_ptr = NULL;
/* init */
tid_dset1 = H5Tcopy(H5T_NATIVE_INT);
@@ -5208,7 +5208,7 @@ write_attr_strings(hid_t loc_id, const char *dset_name, hid_t fid,
/* create 1D attributes with dimension [2], 2 elements */
hsize_t dims[1] = {2};
char buf1[2][STR_SIZE] = {"ab", "de"}; /* string */
- char * buf1a[2]; /* VL string */
+ char *buf1a[2]; /* VL string */
char buf2[2] = {1, 2}; /* bitfield, opaque */
s_t buf3[2] = {{1, 2.0}, {3, 4.0}}; /* compound */
hobj_ref_t buf4[2]; /* reference */
@@ -5222,7 +5222,7 @@ write_attr_strings(hid_t loc_id, const char *dset_name, hid_t fid,
/* create 2D attributes with dimension [3][2], 6 elements */
hsize_t dims2[2] = {3, 2};
char buf12[3][2][STR_SIZE] = {{"ab", "cd"}, {"ef", "gh"}, {"ij", "kl"}}; /* string */
- char * buf12a[3][2]; /* VL string */
+ char *buf12a[3][2]; /* VL string */
char buf22[3][2] = {{1, 2}, {3, 4}, {5, 6}}; /* bitfield, opaque */
s_t buf32[6] = {{1, 2.0}, {3, 4.0}, {5, 6.0}, {7, 8.0}, {9, 10.0}, {11, 12.0}}; /* compound */
hobj_ref_t buf42[3][2]; /* reference */
@@ -5238,7 +5238,7 @@ write_attr_strings(hid_t loc_id, const char *dset_name, hid_t fid,
{{"mn", "pq"}, {"rs", "tu"}, {"vw", "xz"}},
{{"AB", "CD"}, {"EF", "GH"}, {"IJ", "KL"}},
{{"MN", "PQ"}, {"RS", "TU"}, {"VW", "XZ"}}}; /* string */
- char * buf13a[4][3][2]; /* VL string */
+ char *buf13a[4][3][2]; /* VL string */
char buf23[4][3][2]; /* bitfield, opaque */
s_t buf33[4][3][2]; /* compound */
hobj_ref_t buf43[4][3][2]; /* reference */
@@ -6197,7 +6197,7 @@ write_attr_in(hid_t loc_id, const char *dset_name, hid_t fid,
/* create 1D attributes with dimension [2], 2 elements */
hsize_t dims[1] = {2};
char buf1[2][STR_SIZE] = {"ab", "de"}; /* string */
- char * buf1a[2]; /* VL string */
+ char *buf1a[2]; /* VL string */
char buf2[2] = {1, 2}; /* bitfield, opaque */
s_t buf3[2] = {{1, 2.0}, {3, 4.0}}; /* compound */
hobj_ref_t buf4[2]; /* reference */
@@ -6211,7 +6211,7 @@ write_attr_in(hid_t loc_id, const char *dset_name, hid_t fid,
/* create 2D attributes with dimension [3][2], 6 elements */
hsize_t dims2[2] = {3, 2};
char buf12[3][2][STR_SIZE] = {{"ab", "cd"}, {"ef", "gh"}, {"ij", "kl"}}; /* string */
- char * buf12a[3][2]; /* VL string */
+ char *buf12a[3][2]; /* VL string */
char buf22[3][2] = {{1, 2}, {3, 4}, {5, 6}}; /* bitfield, opaque */
s_t buf32[6] = {{1, 2.0}, {3, 4.0}, {5, 6.0}, {7, 8.0}, {9, 10.0}, {11, 12.0}}; /* compound */
hobj_ref_t buf42[3][2]; /* reference */
@@ -6227,7 +6227,7 @@ write_attr_in(hid_t loc_id, const char *dset_name, hid_t fid,
{{"mn", "pq"}, {"rs", "tu"}, {"vw", "xz"}},
{{"AB", "CD"}, {"EF", "GH"}, {"IJ", "KL"}},
{{"MN", "PQ"}, {"RS", "TU"}, {"VW", "XZ"}}}; /* string */
- char * buf13a[4][3][2]; /* VL string */
+ char *buf13a[4][3][2]; /* VL string */
char buf23[4][3][2]; /* bitfield, opaque */
s_t buf33[4][3][2]; /* compound */
hobj_ref_t buf43[4][3][2]; /* reference */
@@ -7189,7 +7189,7 @@ write_dset_in(hid_t loc_id, const char *dset_name, hid_t fid,
/* create 1D attributes with dimension [2], 2 elements */
hsize_t dims[1] = {2};
char buf1[2][STR_SIZE] = {"ab", "de"}; /* string */
- char * buf1a[2]; /* VL string */
+ char *buf1a[2]; /* VL string */
char buf2[2] = {1, 2}; /* bitfield, opaque */
s_t buf3[2] = {{1, 2.0}, {3, 4.0}}; /* compound */
hobj_ref_t buf4[2]; /* reference */
@@ -7203,7 +7203,7 @@ write_dset_in(hid_t loc_id, const char *dset_name, hid_t fid,
/* create 2D attributes with dimension [3][2], 6 elements */
hsize_t dims2[2] = {3, 2};
char buf12[3][2][STR_SIZE] = {{"ab", "cd"}, {"ef", "gh"}, {"ij", "kl"}}; /* string */
- char * buf12a[3][2]; /* VL string */
+ char *buf12a[3][2]; /* VL string */
char buf22[3][2] = {{1, 2}, {3, 4}, {5, 6}}; /* bitfield, opaque */
s_t buf32[6] = {{1, 2.0}, {3, 4.0}, {5, 6.0}, {7, 8.0}, {9, 10.0}, {11, 12.0}}; /* compound */
hobj_ref_t buf42[3][2]; /* reference */
@@ -7218,7 +7218,7 @@ write_dset_in(hid_t loc_id, const char *dset_name, hid_t fid,
{{"mn", "pq"}, {"rs", "tu"}, {"vw", "xz"}},
{{"AB", "CD"}, {"EF", "GH"}, {"IJ", "KL"}},
{{"MN", "PQ"}, {"RS", "TU"}, {"VW", "XZ"}}}; /* string */
- char * buf13a[4][3][2]; /* VL string */
+ char *buf13a[4][3][2]; /* VL string */
char buf23[4][3][2]; /* bitfield, opaque */
s_t buf33[4][3][2]; /* compound */
hobj_ref_t buf43[4][3][2]; /* reference */
@@ -7805,12 +7805,12 @@ gen_datareg(hid_t fid, int make_diffs /* flag to modify data buffers */)
hid_t did1 = H5I_INVALID_HID; /* dataset ID */
hid_t sid1 = H5I_INVALID_HID; /* dataspace ID */
hsize_t dims1[2] = {10, 10}; /* dimensions */
- int * buf; /* dataset buffer */
+ int *buf; /* dataset buffer */
/* reference dataset */
hid_t did2 = H5I_INVALID_HID; /* dataset ID */
hid_t sid2 = H5I_INVALID_HID; /* dataspace ID */
hsize_t dims2[] = {2}; /* 2 references */
- hdset_reg_ref_t * rbuf; /* buffer for write the references */
+ hdset_reg_ref_t *rbuf; /* buffer for write the references */
hsize_t start[10]; /* starting location of hyperslab */
hsize_t count[10]; /* element count of hyperslab */
hsize_t coord[5][2]; /* coordinates for point selection */
@@ -7925,7 +7925,7 @@ test_hyperslab(const char *fname, int make_diffs /* flag to modify data buffers
size_t size;
size_t nelmts = (size_t)GBLL / (1024 * 1024); /* elements in each hyperslab */
char fillvalue = -1;
- char * buf = NULL;
+ char *buf = NULL;
int i, j, s;
char c;
diff --git a/tools/test/h5dump/binread.c b/tools/test/h5dump/binread.c
index 341a085..4e46c57 100644
--- a/tools/test/h5dump/binread.c
+++ b/tools/test/h5dump/binread.c
@@ -61,11 +61,11 @@ usage(void)
int
main(int argc, char *argv[])
{
- FILE * stream;
+ FILE *stream;
size_t numread;
TYPE buf[NELMTS];
size_t i, nelmts = NELMTS;
- char * fname = NULL;
+ char *fname = NULL;
if (argc != 2) {
usage();
diff --git a/tools/test/h5dump/dynlib_dump.c b/tools/test/h5dump/dynlib_dump.c
index 433522d..9d277e0 100644
--- a/tools/test/h5dump/dynlib_dump.c
+++ b/tools/test/h5dump/dynlib_dump.c
@@ -62,7 +62,7 @@ static size_t
H5Z_filter_dynlibud(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_values, size_t nbytes,
size_t *buf_size, void **buf)
{
- char * int_ptr = (char *)*buf; /* Pointer to the data values */
+ char *int_ptr = (char *)*buf; /* Pointer to the data values */
size_t buf_left = *buf_size; /* Amount of data buffer left to process */
/* Check for the correct number of parameters */
diff --git a/tools/test/h5dump/h5dumpgentest.c b/tools/test/h5dump/h5dumpgentest.c
index e271511..003e29a 100644
--- a/tools/test/h5dump/h5dumpgentest.c
+++ b/tools/test/h5dump/h5dumpgentest.c
@@ -457,10 +457,10 @@ gent_dataset(void)
{
hid_t fid, dataset, space;
hsize_t dims[2];
- int ** dset1 = NULL;
- int * dset1_data = NULL;
+ int **dset1 = NULL;
+ int *dset1_data = NULL;
double **dset2 = NULL;
- double * dset2_data = NULL;
+ double *dset2_data = NULL;
int i, j;
/* Set up data arrays */
@@ -1798,7 +1798,7 @@ gent_str(void)
} compound_t;
compound_t **comp1 = NULL;
- compound_t * comp1_data = NULL;
+ compound_t *comp1_data = NULL;
hsize_t mdims[2];
/* Set up data array */
@@ -2114,7 +2114,7 @@ gent_objref(void)
hobj_ref_t *wbuf, /* buffer to write to disk */
*rbuf, /* buffer read from disk */
*tbuf; /* temp. buffer read from disk */
- uint32_t * tu32; /* Temporary pointer to uint32 data */
+ uint32_t *tu32; /* Temporary pointer to uint32 data */
int i; /* counting variables */
const char *write_comment = "Foo!"; /* Comments for group */
hbool_t supports_comments = FALSE;
@@ -2352,9 +2352,9 @@ gent_attrreg(void)
hsize_t coord1[POINT1_NPOINTS][SPACE2_RANK]; /* Coordinates for point selection */
hdset_reg_ref_t *wbuf; /* buffer to write to disk */
hdset_reg_ref_t *rbuf; /* buffer read from disk */
- uint8_t * dwbuf; /* Buffer for writing numeric data to disk */
- uint8_t * drbuf; /* Buffer for reading numeric data from disk */
- uint8_t * tu8; /* Temporary pointer to uint8 data */
+ uint8_t *dwbuf; /* Buffer for writing numeric data to disk */
+ uint8_t *drbuf; /* Buffer for reading numeric data from disk */
+ uint8_t *tu8; /* Temporary pointer to uint8 data */
int i; /* counting variables */
/* Allocate write & read buffers */
@@ -2768,7 +2768,7 @@ static void
gent_vldatatypes2(void)
{
hvl_t wdata[SPACE1_DIM1]; /* Information to write */
- hvl_t * t1; /* Temporary pointer to VL information */
+ hvl_t *t1; /* Temporary pointer to VL information */
hid_t fid1; /* HDF5 File IDs */
hid_t dataset; /* Dataset ID */
hid_t sid1; /* Dataspace ID */
@@ -3046,7 +3046,7 @@ gent_vldatatypes5(void)
static void
gent_array1_big(void)
{
- int * wdata; /* Information to write */
+ int *wdata; /* Information to write */
hid_t fid1; /* HDF5 File IDs */
hid_t dataset; /* Dataset ID */
hid_t sid1; /* Dataspace ID */
@@ -3566,7 +3566,7 @@ gent_array8(void)
herr_t H5_ATTR_NDEBUG_UNUSED status = -1;
hsize_t sdims[] = {F64_DIM0};
hsize_t tdims[] = {F64_DIM1};
- int * wdata; /* Write buffer */
+ int *wdata; /* Write buffer */
unsigned int i;
/* Allocate data buffer */
@@ -3858,8 +3858,8 @@ gent_multi(void)
H5FD_mem_t mt, memb_map[H5FD_MEM_NTYPES];
hid_t memb_fapl[H5FD_MEM_NTYPES];
const char *memb_name[H5FD_MEM_NTYPES];
- char ** sv = NULL;
- char * sv_data = NULL;
+ char **sv = NULL;
+ char *sv_data = NULL;
haddr_t memb_addr[H5FD_MEM_NTYPES];
sv_data = (char *)HDcalloc(H5FD_MEM_NTYPES * 1024, sizeof(char));
@@ -3989,10 +3989,10 @@ gent_char(void)
"men are created equal. Now we are engaged in a great "
"civil war, testing whether that nation or any nation "
"so conceived and so dedicated can long endure.";
- hid_t fid1; /* HDF5 File IDs */
- hid_t dataset; /* Dataset ID */
- hid_t sid1; /* Dataspace ID */
- hsize_t dims1[1];
+ hid_t fid1; /* HDF5 File IDs */
+ hid_t dataset; /* Dataset ID */
+ hid_t sid1; /* Dataspace ID */
+ hsize_t dims1[1];
dims1[0] = HDstrlen(wdata);
@@ -6257,7 +6257,7 @@ gent_longlinks(void)
hid_t fid = (-1); /* File ID */
hid_t gid = (-1); /* Group ID */
hid_t H5_ATTR_NDEBUG_UNUSED gid2 = (-1); /* Datatype ID */
- char * objname = NULL; /* Name of object [Long] */
+ char *objname = NULL; /* Name of object [Long] */
size_t u; /* Local index variable */
/* Create files */
@@ -6479,7 +6479,7 @@ gent_bigdims(void)
hsize_t hs_size[1]; /* hyperslab dimensions */
size_t size;
char fillvalue = 0;
- char * buf = NULL;
+ char *buf = NULL;
hsize_t i;
char c;
size_t nelmts;
@@ -7264,15 +7264,15 @@ gent_packedbits(void)
hid_t space = H5I_INVALID_HID;
hsize_t dims[2];
- uint8_t ** dsetu8 = NULL;
+ uint8_t **dsetu8 = NULL;
uint16_t **dsetu16 = NULL;
uint32_t **dsetu32 = NULL;
uint64_t **dsetu64 = NULL;
- int8_t ** dset8 = NULL;
- int16_t ** dset16 = NULL;
- int32_t ** dset32 = NULL;
- int64_t ** dset64 = NULL;
- double ** dsetdbl = NULL;
+ int8_t **dset8 = NULL;
+ int16_t **dset16 = NULL;
+ int32_t **dset32 = NULL;
+ int64_t **dset64 = NULL;
+ double **dsetdbl = NULL;
uint8_t valu8bits;
uint16_t valu16bits;
@@ -7489,15 +7489,15 @@ gent_attr_intsize(void)
hid_t root = H5I_INVALID_HID;
hsize_t dims[2];
- uint8_t ** dsetu8 = NULL;
+ uint8_t **dsetu8 = NULL;
uint16_t **dsetu16 = NULL;
uint32_t **dsetu32 = NULL;
uint64_t **dsetu64 = NULL;
- int8_t ** dset8 = NULL;
- int16_t ** dset16 = NULL;
- int32_t ** dset32 = NULL;
- int64_t ** dset64 = NULL;
- double ** dsetdbl = NULL;
+ int8_t **dset8 = NULL;
+ int16_t **dset16 = NULL;
+ int32_t **dset32 = NULL;
+ int64_t **dset64 = NULL;
+ double **dsetdbl = NULL;
uint8_t valu8bits;
uint16_t valu16bits;
@@ -8586,15 +8586,15 @@ gent_intscalars(void)
hid_t tid = H5I_INVALID_HID;
hsize_t dims[2];
- uint8_t ** dsetu8 = NULL;
+ uint8_t **dsetu8 = NULL;
uint16_t **dsetu16 = NULL;
uint32_t **dsetu32 = NULL;
uint64_t **dsetu64 = NULL;
- int8_t ** dset8 = NULL;
- int16_t ** dset16 = NULL;
- int32_t ** dset32 = NULL;
- int64_t ** dset64 = NULL;
- double ** dsetdbl = NULL;
+ int8_t **dset8 = NULL;
+ int16_t **dset16 = NULL;
+ int32_t **dset32 = NULL;
+ int64_t **dset64 = NULL;
+ double **dsetdbl = NULL;
uint8_t valu8bits;
uint16_t valu16bits;
@@ -8829,15 +8829,15 @@ gent_attr_intscalars(void)
hid_t tid = H5I_INVALID_HID;
hsize_t dims[2];
- uint8_t ** dsetu8 = NULL;
+ uint8_t **dsetu8 = NULL;
uint16_t **dsetu16 = NULL;
uint32_t **dsetu32 = NULL;
uint64_t **dsetu64 = NULL;
- int8_t ** dset8 = NULL;
- int16_t ** dset16 = NULL;
- int32_t ** dset32 = NULL;
- int64_t ** dset64 = NULL;
- double ** dsetdbl = NULL;
+ int8_t **dset8 = NULL;
+ int16_t **dset16 = NULL;
+ int32_t **dset32 = NULL;
+ int64_t **dset64 = NULL;
+ double **dsetdbl = NULL;
uint8_t valu8bits;
uint16_t valu16bits;
@@ -9618,15 +9618,15 @@ gent_intattrscalars(void)
hid_t tid = H5I_INVALID_HID;
hsize_t dims[2];
- uint8_t ** dsetu8 = NULL;
+ uint8_t **dsetu8 = NULL;
uint16_t **dsetu16 = NULL;
uint32_t **dsetu32 = NULL;
uint64_t **dsetu64 = NULL;
- int8_t ** dset8 = NULL;
- int16_t ** dset16 = NULL;
- int32_t ** dset32 = NULL;
- int64_t ** dset64 = NULL;
- double ** dsetdbl = NULL;
+ int8_t **dset8 = NULL;
+ int16_t **dset16 = NULL;
+ int32_t **dset32 = NULL;
+ int64_t **dset64 = NULL;
+ double **dsetdbl = NULL;
uint8_t valu8bits;
uint16_t valu16bits;
@@ -9896,25 +9896,25 @@ gent_intsattrs(void)
hid_t aspace = H5I_INVALID_HID;
hsize_t dims[2], adims[1];
- uint8_t ** dsetu8 = NULL;
+ uint8_t **dsetu8 = NULL;
uint16_t **dsetu16 = NULL;
uint32_t **dsetu32 = NULL;
uint64_t **dsetu64 = NULL;
- int8_t ** dset8 = NULL;
- int16_t ** dset16 = NULL;
- int32_t ** dset32 = NULL;
- int64_t ** dset64 = NULL;
- double ** dsetdbl = NULL;
+ int8_t **dset8 = NULL;
+ int16_t **dset16 = NULL;
+ int32_t **dset32 = NULL;
+ int64_t **dset64 = NULL;
+ double **dsetdbl = NULL;
- uint8_t * asetu8 = NULL;
+ uint8_t *asetu8 = NULL;
uint16_t *asetu16 = NULL;
uint32_t *asetu32 = NULL;
uint64_t *asetu64 = NULL;
- int8_t * aset8 = NULL;
- int16_t * aset16 = NULL;
- int32_t * aset32 = NULL;
- int64_t * aset64 = NULL;
- double * asetdbl = NULL;
+ int8_t *aset8 = NULL;
+ int16_t *aset16 = NULL;
+ int32_t *aset32 = NULL;
+ int64_t *aset64 = NULL;
+ double *asetdbl = NULL;
uint8_t valu8bits;
uint16_t valu16bits;
@@ -10238,12 +10238,12 @@ gent_floatsattrs(void)
hid_t aspace = H5I_INVALID_HID;
hsize_t dims[2], adims[1];
- float ** dset32 = NULL;
- double ** dset64 = NULL;
+ float **dset32 = NULL;
+ double **dset64 = NULL;
long double **dset128 = NULL;
- float * aset32 = NULL;
- double * aset64 = NULL;
+ float *aset32 = NULL;
+ double *aset64 = NULL;
long double *aset128 = NULL;
float val32bits;
@@ -11069,7 +11069,7 @@ static size_t
H5Z_filter_dynlibud(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_values, size_t nbytes,
size_t *buf_size, void **buf)
{
- char * int_ptr = (char *)*buf; /* Pointer to the data values */
+ char *int_ptr = (char *)*buf; /* Pointer to the data values */
size_t buf_left = *buf_size; /* Amount of data buffer left to process */
/* Check for the correct number of parameters */
diff --git a/tools/test/h5format_convert/h5fc_chk_idx.c b/tools/test/h5format_convert/h5fc_chk_idx.c
index 26a0fb9..f353dd4 100644
--- a/tools/test/h5format_convert/h5fc_chk_idx.c
+++ b/tools/test/h5format_convert/h5fc_chk_idx.c
@@ -43,8 +43,8 @@ usage(void)
int
main(int argc, char *argv[])
{
- char * fname = NULL;
- char * dname = NULL;
+ char *fname = NULL;
+ char *dname = NULL;
hid_t fid = H5I_INVALID_HID;
hid_t did = H5I_INVALID_HID;
H5D_chunk_index_t idx_type;
diff --git a/tools/test/h5jam/getub.c b/tools/test/h5jam/getub.c
index 562a6b9..8fed5b0 100644
--- a/tools/test/h5jam/getub.c
+++ b/tools/test/h5jam/getub.c
@@ -21,7 +21,7 @@ void parse_command_line(int argc, const char *const *argv);
#define PROGRAM_NAME "getub"
char *nbytes = NULL;
-static const char * s_opts = "c:"; /* add more later ? */
+static const char *s_opts = "c:"; /* add more later ? */
static struct long_options l_opts[] = {{"c", require_arg, 'c'}, /* input file */
{NULL, 0, '\0'}};
@@ -81,9 +81,9 @@ main(int argc, char *argv[])
{
int fd = H5I_INVALID_HID;
unsigned size;
- char * filename = NULL;
+ char *filename = NULL;
long res;
- char * buf = NULL;
+ char *buf = NULL;
h5tools_setprogname(PROGRAM_NAME);
h5tools_setstatus(EXIT_SUCCESS);
diff --git a/tools/test/h5jam/h5jamgentest.c b/tools/test/h5jam/h5jamgentest.c
index 5632cc0..b15784a 100644
--- a/tools/test/h5jam/h5jamgentest.c
+++ b/tools/test/h5jam/h5jamgentest.c
@@ -363,10 +363,10 @@ error:
static herr_t
create_textfile(const char *name, size_t size)
{
- char * buf = NULL;
+ char *buf = NULL;
int fd = -1;
size_t i;
- char * bp = NULL;
+ char *bp = NULL;
if ((fd = HDcreat(name, 0777)) < 0)
goto error;
diff --git a/tools/test/h5jam/tellub.c b/tools/test/h5jam/tellub.c
index d608df5..227df5c 100644
--- a/tools/test/h5jam/tellub.c
+++ b/tools/test/h5jam/tellub.c
@@ -24,7 +24,7 @@
* parameters. The long-named ones can be partially spelled. When
* adding more, make sure that they don't clash with each other.
*/
-static const char * s_opts = "h";
+static const char *s_opts = "h";
static struct long_options l_opts[] = {{"help", no_arg, 'h'}, {"hel", no_arg, 'h'}, {NULL, 0, '\0'}};
/*-------------------------------------------------------------------------
@@ -100,7 +100,7 @@ leave(int ret)
int
main(int argc, char *argv[])
{
- char * ifname;
+ char *ifname;
hid_t ifile = H5I_INVALID_HID;
hsize_t usize;
htri_t testval;
diff --git a/tools/test/h5ls/dynlib_ls.c b/tools/test/h5ls/dynlib_ls.c
index 433522d..9d277e0 100644
--- a/tools/test/h5ls/dynlib_ls.c
+++ b/tools/test/h5ls/dynlib_ls.c
@@ -62,7 +62,7 @@ static size_t
H5Z_filter_dynlibud(unsigned int flags, size_t cd_nelmts, const unsigned int *cd_values, size_t nbytes,
size_t *buf_size, void **buf)
{
- char * int_ptr = (char *)*buf; /* Pointer to the data values */
+ char *int_ptr = (char *)*buf; /* Pointer to the data values */
size_t buf_left = *buf_size; /* Amount of data buffer left to process */
/* Check for the correct number of parameters */
diff --git a/tools/test/h5repack/dynlib_rpk.c b/tools/test/h5repack/dynlib_rpk.c
index bef032a..b9e863b 100644
--- a/tools/test/h5repack/dynlib_rpk.c
+++ b/tools/test/h5repack/dynlib_rpk.c
@@ -68,7 +68,7 @@ static size_t
H5Z_filter_dynlib1(unsigned int flags, size_t cd_nelmts, const unsigned int *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 */
int add_on = 0;
diff --git a/tools/test/h5repack/dynlib_vrpk.c b/tools/test/h5repack/dynlib_vrpk.c
index a45de65..981b848 100644
--- a/tools/test/h5repack/dynlib_vrpk.c
+++ b/tools/test/h5repack/dynlib_vrpk.c
@@ -65,7 +65,7 @@ static size_t
H5Z_filter_dynlib4(unsigned int flags, size_t cd_nelmts, const unsigned int *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 */
int add_on = 0;
unsigned ver_info[3];
diff --git a/tools/test/h5repack/h5repacktst.c b/tools/test/h5repack/h5repacktst.c
index 4b8ba56..88d9f97 100644
--- a/tools/test/h5repack/h5repacktst.c
+++ b/tools/test/h5repack/h5repacktst.c
@@ -2432,7 +2432,7 @@ make_szip(hid_t loc_id)
unsigned szip_pixels_per_block = 8;
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
int szip_can_encode = 0;
/* Create and fill array */
@@ -2470,7 +2470,7 @@ make_szip(hid_t loc_id)
/* WARNING? SZIP is decoder only, can't generate test files */
if (H5Sclose(sid) < 0)
- goto error;
+ goto error;
if (H5Pclose(dcpl) < 0)
goto error;
@@ -2506,7 +2506,7 @@ make_deflate(hid_t loc_id)
hid_t sid = H5I_INVALID_HID; /* dataspace ID */
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
hobj_ref_t bufref[1]; /* reference */
hsize_t dims1r[1] = {1};
@@ -2585,7 +2585,7 @@ make_shuffle(hid_t loc_id)
hid_t sid = H5I_INVALID_HID; /* dataspace ID */
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
/* Create and fill array */
H5TEST_ALLOCATE_2D_ARRAY(buf, int, DIM1, DIM2);
@@ -2654,7 +2654,7 @@ make_fletcher32(hid_t loc_id)
hid_t sid = H5I_INVALID_HID; /* dataspace ID */
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
/* Create and fill array */
H5TEST_ALLOCATE_2D_ARRAY(buf, int, DIM1, DIM2);
@@ -2728,7 +2728,7 @@ make_nbit(hid_t loc_id)
hid_t dsid = H5I_INVALID_HID;
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
/* Create and fill array */
H5TEST_ALLOCATE_2D_ARRAY(buf, int, DIM1, DIM2);
@@ -2815,7 +2815,7 @@ make_scaleoffset(hid_t loc_id)
hid_t dsid = H5I_INVALID_HID;
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
/* Create and fill array */
H5TEST_ALLOCATE_2D_ARRAY(buf, int, DIM1, DIM2);
@@ -2900,7 +2900,7 @@ make_all_filters(hid_t loc_id)
#endif /* H5_HAVE_FILTER_SZIP */
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
#if defined(H5_HAVE_FILTER_SZIP)
int szip_can_encode = 0;
#endif
@@ -3152,7 +3152,7 @@ make_layout(hid_t loc_id)
hid_t sid = H5I_INVALID_HID; /* dataspace ID */
hsize_t dims[RANK] = {DIM1, DIM2};
hsize_t chunk_dims[RANK] = {CDIM1, CDIM2};
- int ** buf = NULL;
+ int **buf = NULL;
int i;
char name[16];
@@ -3343,8 +3343,8 @@ make_layout3(hid_t loc_id)
hsize_t chunk_dims1[RANK] = {DIM1_L3 * 2, 5};
hsize_t chunk_dims2[RANK] = {SDIM1_L3 + 2, SDIM2_L3 / 2};
hsize_t chunk_dims3[RANK] = {SDIM1_L3 - 2, SDIM2_L3 / 2};
- int ** buf1 = NULL;
- int ** buf2 = NULL;
+ int **buf1 = NULL;
+ int **buf2 = NULL;
/* Create and fill arrays */
H5TEST_ALLOCATE_2D_ARRAY(buf1, int, DIM1_L3, DIM2_L3);
@@ -4063,7 +4063,7 @@ write_dset_in(hid_t loc_id, const char *dset_name, /* for saving reference to da
{
hsize_t TEST_BUFSIZE = (128 * 1024 * 1024); /* 128MB */
- double * dbuf; /* information to write */
+ double *dbuf; /* information to write */
size_t size;
hsize_t sdims[] = {1};
hsize_t tdims[] = {TEST_BUFSIZE / sizeof(double) + 1};
@@ -4567,7 +4567,7 @@ make_dset_reg_ref(hid_t loc_id)
hsize_t count[SPACE2_RANK]; /* Element count of hyperslab */
hsize_t block[SPACE2_RANK]; /* Block size of hyperslab */
hdset_reg_ref_t *wbuf = NULL; /* buffer to write to disk */
- int * dwbuf = NULL; /* Buffer for writing numeric data to disk */
+ int *dwbuf = NULL; /* Buffer for writing numeric data to disk */
int i; /* counting variables */
int retval = -1; /* return value */
diff --git a/tools/test/misc/h5clear_gentest.c b/tools/test/misc/h5clear_gentest.c
index 04a2379..6f7d0c3 100644
--- a/tools/test/misc/h5clear_gentest.c
+++ b/tools/test/misc/h5clear_gentest.c
@@ -63,7 +63,7 @@ gen_cache_image_file(const char *fname)
hsize_t dims[2]; /* Dimension sizes */
hsize_t chunks[2]; /* Chunked dimension sizes */
int i, j; /* Local index variables */
- int ** buf = NULL; /* Buffer for data to write */
+ int **buf = NULL; /* Buffer for data to write */
H5AC_cache_image_config_t cache_image_config = /* Cache image input configuration */
{H5AC__CURR_CACHE_IMAGE_CONFIG_VERSION, TRUE, FALSE, H5AC__CACHE_IMAGE__ENTRY_AGEOUT__NONE};
diff --git a/tools/test/misc/h5perf_gentest.c b/tools/test/misc/h5perf_gentest.c
index 248fd92..faf5ff3 100644
--- a/tools/test/misc/h5perf_gentest.c
+++ b/tools/test/misc/h5perf_gentest.c
@@ -42,7 +42,7 @@ typedef struct {
phase_t e;
float f_array[FIXED_LEN];
hvl_t i_vlen;
- char * s_vlen;
+ char *s_vlen;
} test_comp_t;
typedef struct {
@@ -140,19 +140,19 @@ create_perf_test_file(const char *fname, int ngrps, int ndsets, int nattrs, hsiz
tid_vlen_i, tid_vlen_s;
char name[32], tmp_name1[32], tmp_name2[32], tmp_name3[32];
hsize_t dims[1] = {dim0}, dims2d[2] = {dim0, (dim0 / 4 + 1)}, dims_array[1] = {FIXED_LEN}, dim1[1] = {2};
- char * enum_names[4] = {"SOLID", "LIQUID", "GAS", "PLASMA"};
+ char *enum_names[4] = {"SOLID", "LIQUID", "GAS", "PLASMA"};
test_comp_t *buf_comp = NULL, *buf_comp_large = NULL;
- int * buf_int = NULL;
+ int *buf_int = NULL;
float(*buf_float_a)[FIXED_LEN] = NULL;
double **buf_double2d = NULL;
- hvl_t * buf_vlen_i = NULL;
+ hvl_t *buf_vlen_i = NULL;
char(*buf_str)[FIXED_LEN];
- char ** buf_vlen_s = NULL;
+ char **buf_vlen_s = NULL;
hobj_ref_t buf_ref[2];
hdset_reg_ref_t buf_reg_ref[2];
size_t offset, len;
herr_t status;
- char * names[NTYPES] = {"int",
+ char *names[NTYPES] = {"int",
"ulong",
"float",
"double",
@@ -543,9 +543,9 @@ add_attrs(hid_t oid, int idx)
long long l = -2147483647;
float f = 123456789.987654321;
double d = 987654321.123456789;
- char * s[7] = {"Parting", "is such", "sweeter", "sorrow."};
+ char *s[7] = {"Parting", "is such", "sweeter", "sorrow."};
float f_array[4] = {1.0, 2.22, 3.333, 4.444};
- char * s_vlen[4] = {"Parting", "is such", "sweet", "sorrow."};
+ char *s_vlen[4] = {"Parting", "is such", "sweet", "sorrow."};
hsize_t dims1[1] = {1}, dims2[1] = {4}, dims3[2] = {3, 5};
int int3d[4][3][5];
size_t offset = 0;
diff --git a/tools/test/misc/h5repart_gentest.c b/tools/test/misc/h5repart_gentest.c
index b068985..5fd454e 100644
--- a/tools/test/misc/h5repart_gentest.c
+++ b/tools/test/misc/h5repart_gentest.c
@@ -26,7 +26,7 @@
#define FILENAME "family_file%05d.h5"
int **buf = NULL;
-int * buf_data = NULL;
+int *buf_data = NULL;
int
main(void)
diff --git a/tools/test/misc/vds/UC_1_one_dim_gen.c b/tools/test/misc/vds/UC_1_one_dim_gen.c
index a816fb8..5ccc7d0 100644
--- a/tools/test/misc/vds/UC_1_one_dim_gen.c
+++ b/tools/test/misc/vds/UC_1_one_dim_gen.c
@@ -62,7 +62,7 @@ main(void)
hsize_t start[RANK]; /* starting point for hyperslab */
hsize_t map_start = 0; /* starting point in the VDS map */
- int * buffer = NULL; /* data buffer */
+ int *buffer = NULL; /* data buffer */
hsize_t count = 0; /* number of elements in a plane */
int n_planes = -1; /* number of planes to write */
int value = -1; /* value written to datasets */
diff --git a/tools/test/misc/vds/UC_2_two_dims_gen.c b/tools/test/misc/vds/UC_2_two_dims_gen.c
index 85bd63d..bf8bd3a 100644
--- a/tools/test/misc/vds/UC_2_two_dims_gen.c
+++ b/tools/test/misc/vds/UC_2_two_dims_gen.c
@@ -70,7 +70,7 @@ main(void)
hsize_t start[RANK]; /* starting point for hyperslab */
hsize_t extent[RANK]; /* dataset extents */
- int * buffer = NULL; /* data buffer */
+ int *buffer = NULL; /* data buffer */
int value = -1; /* value written to datasets */
hsize_t count = 0; /* number of elements in a plane */
int n_planes = -1; /* number of planes to write */
diff --git a/tools/test/perform/chunk.c b/tools/test/perform/chunk.c
index 1b08e95..e197eed 100644
--- a/tools/test/perform/chunk.c
+++ b/tools/test/perform/chunk.c
@@ -329,7 +329,7 @@ main(void)
{
size_t io_size;
double effic, io_percent;
- FILE * f, *d;
+ FILE *f, *d;
size_t cache_size;
double w0;
diff --git a/tools/test/perform/chunk_cache.c b/tools/test/perform/chunk_cache.c
index ad9bf09..28e5dd2 100644
--- a/tools/test/perform/chunk_cache.c
+++ b/tools/test/perform/chunk_cache.c
@@ -98,7 +98,7 @@ create_dset1(hid_t file)
hid_t dcpl = H5I_INVALID_HID;
hsize_t dims[RANK] = {DSET1_DIM1, DSET1_DIM2};
hsize_t chunk_dims[RANK] = {CHUNK1_DIM1, CHUNK1_DIM2};
- int ** data = NULL; /* data for writing */
+ int **data = NULL; /* data for writing */
/* Create the data space. */
if ((dataspace = H5Screate_simple(RANK, dims, NULL)) < 0)
@@ -162,7 +162,7 @@ create_dset2(hid_t file)
hid_t dcpl = H5I_INVALID_HID;
hsize_t dims[RANK] = {DSET2_DIM1, DSET2_DIM2};
hsize_t chunk_dims[RANK] = {CHUNK2_DIM1, CHUNK2_DIM2};
- int ** data = NULL; /* data for writing */
+ int **data = NULL; /* data for writing */
/* Create the data space. */
if ((dataspace = H5Screate_simple(RANK, dims, NULL)) < 0)
diff --git a/tools/test/perform/direct_write_perf.c b/tools/test/perform/direct_write_perf.c
index 6fd9688..1d56cbd 100644
--- a/tools/test/perform/direct_write_perf.c
+++ b/tools/test/perform/direct_write_perf.c
@@ -150,7 +150,7 @@ create_file(hid_t fapl_id)
size_t buf_size = CHUNK_NY * CHUNK_NZ * sizeof(unsigned int);
const Bytef *z_src;
- Bytef * z_dst; /*destination buffer */
+ Bytef *z_dst; /*destination buffer */
uLongf z_dst_nbytes = (uLongf)DEFLATE_SIZE_ADJUST(buf_size);
uLong z_src_nbytes = (uLong)buf_size;
diff --git a/tools/test/perform/overhead.c b/tools/test/perform/overhead.c
index 64192ba..d2340fc 100644
--- a/tools/test/perform/overhead.c
+++ b/tools/test/perform/overhead.c
@@ -175,7 +175,7 @@ test(fill_t fill_style, const double splits[], hbool_t verbose, hbool_t use_rdcc
hsize_t hs_start[1]; /*hyperslab start offset*/
hsize_t hs_count[1] = {1}; /*hyperslab nelmts */
int fd = (-1); /*h5 file direct */
- int * had = NULL; /*for random filling */
+ int *had = NULL; /*for random filling */
const char *sname = NULL; /*fill style nam */
int mdc_nelmts; /*num meta objs to cache*/
hsize_t i, k;
diff --git a/tools/test/perform/pio_standalone.h b/tools/test/perform/pio_standalone.h
index 5e56c92..cac66e5 100644
--- a/tools/test/perform/pio_standalone.h
+++ b/tools/test/perform/pio_standalone.h
@@ -441,7 +441,7 @@ H5_DLL int64_t HDstrtoll(const char *s, const char **rest, int base);
#else /* H5_HAVE_WIN32_API */
#if !defined strdup && !defined H5_HAVE_STRDUP
-extern char * strdup(const char *s);
+extern char *strdup(const char *s);
#endif
#define HDstrdup(S) strdup(S)
@@ -471,7 +471,7 @@ enum h5_arg_level {
};
struct long_options {
- const char * name; /* Name of the long option */
+ const char *name; /* Name of the long option */
enum h5_arg_level has_arg; /* Whether we should look for an arg */
char shortval; /* The shortname equivalent of long arg
* this gets returned from get_option
diff --git a/tools/test/perform/sio_standalone.h b/tools/test/perform/sio_standalone.h
index 02bd647..d1960af 100644
--- a/tools/test/perform/sio_standalone.h
+++ b/tools/test/perform/sio_standalone.h
@@ -456,7 +456,7 @@ H5_DLL int64_t HDstrtoll(const char *s, const char **rest, int base);
#else /* H5_HAVE_WIN32_API */
#if !defined strdup && !defined H5_HAVE_STRDUP
-extern char * strdup(const char *s);
+extern char *strdup(const char *s);
#endif
#define HDstrdup(S) strdup(S)
@@ -486,7 +486,7 @@ enum h5_arg_level {
};
struct long_options {
- const char * name; /* Name of the long option */
+ const char *name; /* Name of the long option */
enum h5_arg_level has_arg; /* Whether we should look for an arg */
char shortval; /* The shortname equivalent of long arg
* this gets returned from get_option
diff --git a/tools/test/perform/zip_perf.c b/tools/test/perform/zip_perf.c
index 6a8dac8..e1cff93 100644
--- a/tools/test/perform/zip_perf.c
+++ b/tools/test/perform/zip_perf.c
@@ -52,7 +52,7 @@
/* internal variables */
static const char *prog = NULL;
static const char *option_prefix = NULL;
-static char * filename = NULL;
+static char *filename = NULL;
static int compress_percent = 0;
static int compress_level = Z_DEFAULT_COMPRESSION;
static int output, random_test = FALSE;
@@ -64,7 +64,7 @@ static void error(const char *fmt, ...);
static void compress_buffer(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen);
/* commandline options : long and short form */
-static const char * s_opts = "hB:b:c:p:rs:0123456789";
+static const char *s_opts = "hB:b:c:p:rs:0123456789";
static struct long_options l_opts[] = {{"help", no_arg, 'h'},
{"compressability", require_arg, 'c'},
{"file-size", require_arg, 's'},
@@ -111,7 +111,7 @@ cleanup(void)
static void
write_file(Bytef *source, uLongf sourceLen)
{
- Bytef * d_ptr, *dest;
+ Bytef *d_ptr, *dest;
uLongf d_len, destLen;
struct timeval timer_start, timer_stop;
@@ -303,7 +303,7 @@ static unsigned long
parse_size_directive(const char *size)
{
unsigned long s;
- char * endptr;
+ char *endptr;
s = HDstrtoul(size, &endptr, 10);
@@ -383,7 +383,7 @@ do_write_test(unsigned long file_size, unsigned long min_buf_size, unsigned long
uLongf src_len, total_len;
struct timeval timer_start, timer_stop;
double total_time;
- Bytef * src;
+ Bytef *src;
for (src_len = min_buf_size; src_len <= max_buf_size; src_len <<= 1) {
unsigned long i, iters;