summaryrefslogtreecommitdiffstats
path: root/tools/h5ls/h5ls.c
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-07-28 15:05:11 (GMT)
committerGitHub <noreply@github.com>2022-07-28 15:05:11 (GMT)
commit762c111350cc31137a80e24126b00d9aacf3b2a9 (patch)
tree8d21ed8a877bc60b9c517b7505ce80e2cf8031a9 /tools/h5ls/h5ls.c
parentc1c4db3c4a0cbef6eceaab2f069e895936fbbe34 (diff)
downloadhdf5-762c111350cc31137a80e24126b00d9aacf3b2a9.zip
hdf5-762c111350cc31137a80e24126b00d9aacf3b2a9.tar.gz
hdf5-762c111350cc31137a80e24126b00d9aacf3b2a9.tar.bz2
clang 13 format #1933 (#1941)
Diffstat (limited to 'tools/h5ls/h5ls.c')
-rw-r--r--tools/h5ls/h5ls.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c
index a4eecdf..6bc42f7 100644
--- a/tools/h5ls/h5ls.c
+++ b/tools/h5ls/h5ls.c
@@ -108,7 +108,7 @@ static h5tool_format_t ls_dataformat = {
/* Struct to pass through to visitors */
typedef struct {
- const char * fname; /* Filename */
+ const char *fname; /* Filename */
hid_t fid; /* File ID */
hid_t gid; /* Group ID */
hbool_t symlink_target; /* Whether this is the target of an symbolic link */
@@ -827,7 +827,7 @@ print_float_type(h5tools_str_t *buffer, hid_t type, int ind)
static hbool_t
print_cmpd_type(h5tools_str_t *buffer, hid_t type, int ind)
{
- char * name = NULL; /* member name */
+ char *name = NULL; /* member name */
size_t size; /* total size of type in bytes */
hid_t subtype; /* member data type */
int nmembs; /* number of members */
@@ -886,7 +886,7 @@ print_enum_type(h5tools_str_t *buffer, hid_t type, int ind)
h5tools_str_append(buffer, " {");
if (nmembs > 0) {
- char ** name; /* member names */
+ char **name; /* member names */
unsigned char *value; /* value array */
hid_t native = H5I_INVALID_HID; /* native integer data type */
size_t dst_size; /* destination value type size */
@@ -1109,7 +1109,7 @@ print_reference_type(h5tools_str_t *buffer, hid_t type, int H5_ATTR_UNUSED ind)
static hbool_t
print_opaque_type(h5tools_str_t *buffer, hid_t type, int ind)
{
- char * tag;
+ char *tag;
size_t size;
if (H5T_OPAQUE != H5Tget_class(type))
@@ -1300,8 +1300,8 @@ dump_dataset_values(hid_t dset)
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
h5tool_format_t outputformat;
- h5tool_format_t * info = &ls_dataformat;
- unsigned char * region_buf = NULL;
+ h5tool_format_t *info = &ls_dataformat;
+ unsigned char *region_buf = NULL;
H5TOOLS_START_DEBUG(" ");
@@ -1469,8 +1469,8 @@ dump_attribute_values(hid_t attr)
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
h5tool_format_t outputformat;
- h5tool_format_t * info = &ls_dataformat;
- unsigned char * region_buf = NULL;
+ h5tool_format_t *info = &ls_dataformat;
+ unsigned char *region_buf = NULL;
H5TOOLS_START_DEBUG(" ");
@@ -1646,7 +1646,7 @@ list_attr(hid_t obj, const char *attr_name, const H5A_info_t H5_ATTR_UNUSED *ain
hsize_t curr_pos = 0; /* total data element position */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
H5TOOLS_START_DEBUG(" ");
@@ -1756,7 +1756,7 @@ dataset_list1(hid_t dset)
hsize_t curr_pos = 0; /* total data element position */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
HDmemset(&ctx, 0, sizeof(ctx));
HDmemset(&buffer, 0, sizeof(h5tools_str_t));
@@ -1828,7 +1828,7 @@ dataset_list2(hid_t dset, const char H5_ATTR_UNUSED *name)
hsize_t curr_pos = 0; /* total data element position */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
HDmemset(&ctx, 0, sizeof(ctx));
HDmemset(&buffer, 0, sizeof(h5tools_str_t));
@@ -1954,7 +1954,7 @@ dataset_list2(hid_t dset, const char H5_ATTR_UNUSED *name)
for (i = 0; i < nf; i++) {
cd_nelmts = NELMTS(cd_values);
filt_id = H5Pget_filter2(dcpl, (unsigned)i, &filt_flags, &cd_nelmts, cd_values,
- sizeof(f_name), f_name, NULL);
+ sizeof(f_name), f_name, NULL);
f_name[sizeof(f_name) - 1] = '\0';
HDsnprintf(s, sizeof(s), "Filter-%d:", i);
h5tools_str_append(&buffer, " %-10s %s-%u %s {", s, (f_name[0] ? f_name : "method"),
@@ -2010,7 +2010,7 @@ datatype_list2(hid_t type, const char H5_ATTR_UNUSED *name)
hsize_t curr_pos = 0; /* total data element position */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
HDmemset(&ctx, 0, sizeof(ctx));
HDmemset(&buffer, 0, sizeof(h5tools_str_t));
@@ -2041,11 +2041,11 @@ static herr_t
list_obj(const char *name, const H5O_info_t *oinfo, const char *first_seen, void *_iter)
{
H5O_type_t obj_type = oinfo->type; /* Type of the object */
- iter_t * iter = (iter_t *)_iter;
+ iter_t *iter = (iter_t *)_iter;
hsize_t curr_pos = 0; /* total data element position */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
H5TOOLS_START_DEBUG(" ");
@@ -2112,7 +2112,7 @@ list_obj(const char *name, const H5O_info_t *oinfo, const char *first_seen, void
* which is common to all objects. */
if (verbose_g > 0) {
size_t buf_size = 0;
- char * comment = NULL;
+ char *comment = NULL;
ssize_t cmt_bufsize = -1;
/* Display attributes */
@@ -2206,14 +2206,14 @@ done:
static herr_t
list_lnk(const char *name, const H5L_info_t *linfo, void *_iter)
{
- char * buf = NULL;
- iter_t * iter = (iter_t *)_iter;
+ char *buf = NULL;
+ iter_t *iter = (iter_t *)_iter;
int ret;
hsize_t curr_pos = 0; /* total data element position */
h5tool_link_info_t lnk_info;
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
HDmemset(&ctx, 0, sizeof(ctx));
HDmemset(&buffer, 0, sizeof(h5tools_str_t));
@@ -2399,7 +2399,7 @@ visit_obj(hid_t file, const char *oname, iter_t *iter)
hsize_t curr_pos = 0; /* total data element position */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
HDmemset(&ctx, 0, sizeof(ctx));
HDmemset(&buffer, 0, sizeof(h5tools_str_t));
@@ -2590,9 +2590,9 @@ int
main(int argc, char *argv[])
{
hid_t file_id = H5I_INVALID_HID;
- char * fname = NULL, *oname = NULL, *x = NULL;
+ char *fname = NULL, *oname = NULL, *x = NULL;
const char *s = NULL;
- char * rest;
+ char *rest;
int argno;
static char root_name[] = "/";
char drivername[50];
@@ -3010,7 +3010,7 @@ main(int argc, char *argv[])
hsize_t curr_pos = 0; /* total data element position */
h5tools_str_t buffer; /* string into which to render */
h5tools_context_t ctx; /* print context */
- h5tool_format_t * info = &ls_dataformat;
+ h5tool_format_t *info = &ls_dataformat;
HDmemset(&ctx, 0, sizeof(ctx));
HDmemset(&buffer, 0, sizeof(h5tools_str_t));