diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-04-27 16:58:11 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-04-27 16:58:11 (GMT) |
commit | bf5e832acc0527050d63f5cb91fe15e040bf7e48 (patch) | |
tree | 7d6fd1b4d47be02662c8a147640b8230053a25f1 /tools/test | |
parent | c03ee563f46013d22f36a1895664a9ba876558e9 (diff) | |
download | hdf5-bf5e832acc0527050d63f5cb91fe15e040bf7e48.zip hdf5-bf5e832acc0527050d63f5cb91fe15e040bf7e48.tar.gz hdf5-bf5e832acc0527050d63f5cb91fe15e040bf7e48.tar.bz2 |
Fixed pio_perf const pointers.
Diffstat (limited to 'tools/test')
-rw-r--r-- | tools/test/perform/pio_perf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/test/perform/pio_perf.c b/tools/test/perform/pio_perf.c index 044ce0c..cb15f64 100644 --- a/tools/test/perform/pio_perf.c +++ b/tools/test/perform/pio_perf.c @@ -300,7 +300,7 @@ typedef struct _minmax { /* local functions */ static off_t parse_size_directive(const char *size); -static struct options *parse_command_line(int argc, const char *argv[]); +static struct options *parse_command_line(int argc, char *argv[]); static void run_test_loop(struct options *options); static int run_test(iotype iot, parameters parms, struct options *opts); static void output_all_info(minmax *mm, int count, int indent_level); @@ -327,7 +327,7 @@ static off_t squareo(off_t); * Modifications: */ int -main(int argc, const char *argv[]) +main(int argc, char *argv[]) { int ret; int exit_value = EXIT_SUCCESS; @@ -1262,7 +1262,7 @@ report_parameters(struct options *opts) * Added 2D testing (Christian Chilan, 10. August 2005) */ static struct options * -parse_command_line(int argc, const char *argv[]) +parse_command_line(int argc, char *argv[]) { register int opt; struct options *cl_opts; @@ -1291,7 +1291,7 @@ parse_command_line(int argc, const char *argv[]) cl_opts->h5_write_only = FALSE; /* Do both read and write by default */ cl_opts->verify = FALSE; /* No Verify data correctness by default */ - while ((opt = get_option(argc, argv, s_opts, l_opts)) != EOF) { + while ((opt = get_option(argc, (const char **)argv, s_opts, l_opts)) != EOF) { switch ((char)opt) { case 'a': cl_opts->h5_alignment = parse_size_directive(opt_arg); |