summaryrefslogtreecommitdiffstats
path: root/tools/src/misc
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 /tools/src/misc
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 'tools/src/misc')
-rw-r--r--tools/src/misc/h5clear.c6
-rw-r--r--tools/src/misc/h5debug.c4
-rw-r--r--tools/src/misc/h5mkgrp.c6
-rw-r--r--tools/src/misc/h5repart.c6
4 files changed, 11 insertions, 11 deletions
diff --git a/tools/src/misc/h5clear.c b/tools/src/misc/h5clear.c
index 15c170d..c86763f 100644
--- a/tools/src/misc/h5clear.c
+++ b/tools/src/misc/h5clear.c
@@ -34,7 +34,7 @@
/* Default increment is 1 megabytes for the --increment option */
#define DEFAULT_INCREMENT (1024 * 1024)
-static char * fname_g = NULL;
+static char *fname_g = NULL;
static hbool_t clear_status_flags = FALSE;
static hbool_t remove_cache_image = FALSE;
static hbool_t print_filesize = FALSE;
@@ -44,7 +44,7 @@ static hsize_t increment = DEFAULT_INCREMENT;
/*
* Command-line options: only publicize long options
*/
-static const char * s_opts = "hVsmzi*";
+static const char *s_opts = "hVsmzi*";
static struct h5_long_options l_opts[] = {
{"help", no_arg, 'h'}, {"version", no_arg, 'V'}, {"status", no_arg, 's'},
{"image", no_arg, 'm'}, {"filesize", no_arg, 'z'}, {"increment", optional_arg, 'i'},
@@ -226,7 +226,7 @@ leave(int ret)
int
main(int argc, char *argv[])
{
- char * fname = NULL; /* File name */
+ char *fname = NULL; /* File name */
hid_t fapl = H5I_INVALID_HID; /* File access property list */
hid_t fid = H5I_INVALID_HID; /* File ID */
haddr_t image_addr;
diff --git a/tools/src/misc/h5debug.c b/tools/src/misc/h5debug.c
index e03c72d..ccb91d2 100644
--- a/tools/src/misc/h5debug.c
+++ b/tools/src/misc/h5debug.c
@@ -240,14 +240,14 @@ main(int argc, char *argv[])
hid_t fid = H5I_INVALID_HID;
hid_t fapl = H5I_INVALID_HID;
H5VL_object_t *vol_obj;
- H5F_t * f;
+ H5F_t *f;
haddr_t addr = 0;
int extra_count = 0; /* Number of extra arguments */
haddr_t extra[10];
uint8_t sig[H5F_SIGNATURE_LEN];
size_t u;
H5E_auto2_t func = NULL;
- void * edata = NULL;
+ void *edata = NULL;
hbool_t api_ctx_pushed = FALSE; /* Whether API context pushed */
herr_t status = SUCCEED;
int exit_value = 0;
diff --git a/tools/src/misc/h5mkgrp.c b/tools/src/misc/h5mkgrp.c
index 1b8b23d..a786df6 100644
--- a/tools/src/misc/h5mkgrp.c
+++ b/tools/src/misc/h5mkgrp.c
@@ -22,7 +22,7 @@
int d_status = EXIT_SUCCESS;
/* command-line options: short and long-named parameters */
-static const char * s_opts = "hlpvV";
+static const char *s_opts = "hlpvV";
static struct h5_long_options l_opts[] = {
{"help", no_arg, 'h'}, {"latest", no_arg, 'l'}, {"parents", no_arg, 'p'},
{"verbose", no_arg, 'v'}, {"version", no_arg, 'V'}, {"vol-value", require_arg, '1'},
@@ -31,12 +31,12 @@ static struct h5_long_options l_opts[] = {
/* Command line parameter settings */
typedef struct mkgrp_opt_t {
- char * fname; /* File name to operate on */
+ char *fname; /* File name to operate on */
hbool_t latest; /* Whether file should use latest format versions */
hbool_t verbose; /* Whether output should be verbose */
hbool_t parents; /* Whether to create intermediate groups */
size_t ngroups; /* Number of groups to create */
- char ** groups; /* Pointer to array of group names */
+ char **groups; /* Pointer to array of group names */
hid_t fapl_id; /* fapl to use when opening the file */
} mkgrp_opt_t;
diff --git a/tools/src/misc/h5repart.c b/tools/src/misc/h5repart.c
index 89be169..779b6f9 100644
--- a/tools/src/misc/h5repart.c
+++ b/tools/src/misc/h5repart.c
@@ -157,7 +157,7 @@ main(int argc, char *argv[])
{
const char *prog_name; /*program name */
size_t blk_size = 1024; /*size of each I/O block */
- char * buf = NULL; /*I/O block buffer */
+ char *buf = NULL; /*I/O block buffer */
size_t n, i; /*counters */
ssize_t nio; /*I/O return value */
int argno = 1; /*program argument number */
@@ -169,13 +169,13 @@ main(int argc, char *argv[])
int verbose = FALSE; /*display file names? */
const char *src_gen_name; /*general source name */
- char * src_name = NULL; /*source member name */
+ char *src_name = NULL; /*source member name */
int src_is_family; /*is source name a family name? */
int src_membno = 0; /*source member number */
const char *dst_gen_name; /*general destination name */
- char * dst_name = NULL; /*destination member name */
+ char *dst_name = NULL; /*destination member name */
int dst_is_family; /*is dst name a family name? */
int dst_membno = 0; /*destination member number */