diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-07-29 13:36:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 13:36:40 (GMT) |
commit | 40fc2cca16cd562954d3b724fa56badb3b9da72b (patch) | |
tree | 536b4bb51328af98ead7dfa1951f36b47f9b752a /tools/test/perform | |
parent | c63dfb0fd3345ecb33014612f94d3959f147be03 (diff) | |
download | hdf5-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 'tools/test/perform')
-rw-r--r-- | tools/test/perform/chunk.c | 2 | ||||
-rw-r--r-- | tools/test/perform/chunk_cache.c | 4 | ||||
-rw-r--r-- | tools/test/perform/direct_write_perf.c | 2 | ||||
-rw-r--r-- | tools/test/perform/overhead.c | 2 | ||||
-rw-r--r-- | tools/test/perform/pio_standalone.h | 4 | ||||
-rw-r--r-- | tools/test/perform/sio_standalone.h | 4 | ||||
-rw-r--r-- | tools/test/perform/zip_perf.c | 10 |
7 files changed, 14 insertions, 14 deletions
diff --git a/tools/test/perform/chunk.c b/tools/test/perform/chunk.c index 1b6793a..8be50c7 100644 --- a/tools/test/perform/chunk.c +++ b/tools/test/perform/chunk.c @@ -331,7 +331,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 5eddd46..c476135 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 2687ce9..41eef0c 100644 --- a/tools/test/perform/overhead.c +++ b/tools/test/perform/overhead.c @@ -181,7 +181,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 1b83e21..093247c 100644 --- a/tools/test/perform/pio_standalone.h +++ b/tools/test/perform/pio_standalone.h @@ -446,7 +446,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) @@ -476,7 +476,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 cadc00d..b46af62 100644 --- a/tools/test/perform/sio_standalone.h +++ b/tools/test/perform/sio_standalone.h @@ -461,7 +461,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) @@ -491,7 +491,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 040e774..b196273 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) { register unsigned long i, iters; |