summaryrefslogtreecommitdiffstats
path: root/tools/h5diff
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5diff')
-rw-r--r--tools/h5diff/dynlib_diff.c2
-rw-r--r--tools/h5diff/h5diff_common.c8
-rw-r--r--tools/h5diff/h5diffgentest.c64
3 files changed, 37 insertions, 37 deletions
diff --git a/tools/h5diff/dynlib_diff.c b/tools/h5diff/dynlib_diff.c
index 433522d..9d277e0 100644
--- a/tools/h5diff/dynlib_diff.c
+++ b/tools/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/h5diff/h5diff_common.c b/tools/h5diff/h5diff_common.c
index 4add08d..9f7006b 100644
--- a/tools/h5diff/h5diff_common.c
+++ b/tools/h5diff/h5diff_common.c
@@ -25,7 +25,7 @@ static int check_d_input(const char *);
* Command-line options: The user can specify short or long-named
* parameters.
*/
-static const char * s_opts = "hVrv*qn:d:p:NcelxE:A:S*";
+static const char *s_opts = "hVrv*qn:d:p:NcelxE:A:S*";
static struct long_options l_opts[] = {{"help", no_arg, 'h'},
{"version", no_arg, 'V'},
{"report", no_arg, 'r'},
@@ -88,8 +88,8 @@ check_options(diff_opt_t *opts)
static void
parse_hsize_list(const char *h_list, subset_d *d)
{
- hsize_t * p_list;
- const char * ptr;
+ hsize_t *p_list;
+ const char *ptr;
unsigned int size_count = 0;
unsigned int i = 0;
unsigned int last_digit = 0;
@@ -148,7 +148,7 @@ static struct subset_t *
parse_subset_params(const char *dset)
{
struct subset_t *s = NULL;
- char * brace;
+ char *brace;
H5TOOLS_START_DEBUG(" - dset:%s", dset);
if ((brace = HDstrrchr(dset, '[')) != NULL) {
diff --git a/tools/h5diff/h5diffgentest.c b/tools/h5diff/h5diffgentest.c
index 3015883..8cf067a 100644
--- a/tools/h5diff/h5diffgentest.c
+++ b/tools/h5diff/h5diffgentest.c
@@ -3326,8 +3326,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 */
@@ -3338,9 +3338,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 */
@@ -3363,9 +3363,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 */
@@ -3404,8 +3404,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 */
@@ -3415,9 +3415,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 */
@@ -3431,9 +3431,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;
@@ -4629,15 +4629,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);
@@ -5109,7 +5109,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 */
@@ -5123,7 +5123,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 */
@@ -5139,7 +5139,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 */
@@ -6098,7 +6098,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 */
@@ -6112,7 +6112,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 */
@@ -6128,7 +6128,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 */
@@ -7090,7 +7090,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 */
@@ -7104,7 +7104,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 */
@@ -7119,7 +7119,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 */
@@ -7706,7 +7706,7 @@ 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 */
@@ -7826,7 +7826,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;