diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-01-31 05:06:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-31 05:06:01 (GMT) |
commit | 79d93d1661563f3570b2d0128a07bc7d7fc93ea8 (patch) | |
tree | d2be68b11b61a649a61fdf5cdca8d5499cf2a329 /tools/test/perform | |
parent | 3b575625cbae00f24217a41d3ef2eb787b2e45d4 (diff) | |
download | hdf5-79d93d1661563f3570b2d0128a07bc7d7fc93ea8.zip hdf5-79d93d1661563f3570b2d0128a07bc7d7fc93ea8.tar.gz hdf5-79d93d1661563f3570b2d0128a07bc7d7fc93ea8.tar.bz2 |
1 10 Remove const from the argv tools/tests main sig. #1390 (#1405)
Diffstat (limited to 'tools/test/perform')
-rw-r--r-- | tools/test/perform/pio_standalone.c | 2 | ||||
-rw-r--r-- | tools/test/perform/pio_standalone.h | 3 | ||||
-rw-r--r-- | tools/test/perform/sio_standalone.c | 2 | ||||
-rw-r--r-- | tools/test/perform/sio_standalone.h | 3 | ||||
-rw-r--r-- | tools/test/perform/zip_perf.c | 6 |
5 files changed, 9 insertions, 7 deletions
diff --git a/tools/test/perform/pio_standalone.c b/tools/test/perform/pio_standalone.c index 032bfba..9ea47d6 100644 --- a/tools/test/perform/pio_standalone.c +++ b/tools/test/perform/pio_standalone.c @@ -23,7 +23,7 @@ int nCols = 80; int -get_option(int argc, const char **argv, const char *opts, const struct h5_long_options *l_opts) +get_option(int argc, char **argv, const char *opts, const struct h5_long_options *l_opts) { static int sp = 1; /* character index in current token */ int opt_opt = '?'; /* option character passed back to user */ diff --git a/tools/test/perform/pio_standalone.h b/tools/test/perform/pio_standalone.h index 23cd0e8..5cc9a63 100644 --- a/tools/test/perform/pio_standalone.h +++ b/tools/test/perform/pio_standalone.h @@ -483,7 +483,8 @@ struct h5_long_options { */ }; -extern int H5_get_option(int argc, const char **argv, const char *opt, const struct h5_long_options *l_opt); +extern int H5_get_option(int argc, const char *const *argv, const char *opt, + const struct h5_long_options *l_opt); extern int nCols; /*max number of columns for outputting */ diff --git a/tools/test/perform/sio_standalone.c b/tools/test/perform/sio_standalone.c index 7c22b53..ace6b7e 100644 --- a/tools/test/perform/sio_standalone.c +++ b/tools/test/perform/sio_standalone.c @@ -23,7 +23,7 @@ int nCols = 80; int -get_option(int argc, const char **argv, const char *opts, const struct h5_long_options *l_opts) +get_option(int argc, char **argv, const char *opts, const struct h5_long_options *l_opts) { static int sp = 1; /* character index in current token */ int opt_opt = '?'; /* option character passed back to user */ diff --git a/tools/test/perform/sio_standalone.h b/tools/test/perform/sio_standalone.h index bf925f1..2fc644f 100644 --- a/tools/test/perform/sio_standalone.h +++ b/tools/test/perform/sio_standalone.h @@ -498,7 +498,8 @@ struct h5_long_options { */ }; -extern int H5_get_option(int argc, const char **argv, const char *opt, const struct h5_long_options *l_opt); +extern int H5_get_option(int argc, const char *const *argv, const char *opt, + const struct h5_long_options *l_opt); extern int nCols; /*max number of columns for outputting */ diff --git a/tools/test/perform/zip_perf.c b/tools/test/perform/zip_perf.c index 123fb98..5db97d1 100644 --- a/tools/test/perform/zip_perf.c +++ b/tools/test/perform/zip_perf.c @@ -489,7 +489,7 @@ do_write_test(unsigned long file_size, unsigned long min_buf_size, unsigned long * Modifications: */ int -main(int argc, const char *argv[]) +main(int argc, char *argv[]) { unsigned long min_buf_size = 128 * ONE_KB, max_buf_size = ONE_MB; unsigned long file_size = 64 * ONE_MB; @@ -500,7 +500,7 @@ main(int argc, const char *argv[]) /* Initialize h5tools lib */ h5tools_init(); - while ((opt = H5_get_option(argc, argv, s_opts, l_opts)) > 0) { + while ((opt = H5_get_option(argc, (const char *const *)argv, s_opts, l_opts)) > 0) { switch ((char)opt) { case '0': case '1': @@ -551,7 +551,7 @@ main(int argc, const char *argv[]) } if (min_buf_size > max_buf_size) - error("minmum buffer size (%d) exceeds maximum buffer size (%d)", min_buf_size, max_buf_size); + error("minimum buffer size (%d) exceeds maximum buffer size (%d)", min_buf_size, max_buf_size); HDfprintf(stdout, "Filesize: %ld\n", file_size); |