diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-01-28 22:30:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 22:30:33 (GMT) |
commit | ad71539d30c799c497953c18352df37d83a75310 (patch) | |
tree | f078b6bc5aeef7042356f084454ba71e64879ea4 /src | |
parent | b5eed1b56324fc07154c2e2d8251d2b87505ca23 (diff) | |
download | hdf5-ad71539d30c799c497953c18352df37d83a75310.zip hdf5-ad71539d30c799c497953c18352df37d83a75310.tar.gz hdf5-ad71539d30c799c497953c18352df37d83a75310.tar.bz2 |
Remove const from the argv tools/tests main sig. (#1390)
* Remove const from the argv tools/tests main sig.
* also remove const from H5_get_option and parse_command_line.
* Committing clang-format changes
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/H5private.h | 3 | ||||
-rw-r--r-- | src/H5system.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/H5private.h b/src/H5private.h index fa52e7f..68aabc2 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -2602,7 +2602,8 @@ struct h5_long_options { */ }; -H5_DLL int H5_get_option(int argc, const char **argv, const char *opt, const struct h5_long_options *l_opt); +H5_DLL int H5_get_option(int argc, const char *const *argv, const char *opt, + const struct h5_long_options *l_opt); #ifdef H5_HAVE_PARALLEL /* Generic MPI functions */ diff --git a/src/H5system.c b/src/H5system.c index 9a966b0..ee9077e 100644 --- a/src/H5system.c +++ b/src/H5system.c @@ -956,7 +956,7 @@ const char *H5_optarg; /* Flag argument (or value) */ *------------------------------------------------------------------------- */ int -H5_get_option(int argc, const char **argv, const char *opts, const struct h5_long_options *l_opts) +H5_get_option(int argc, const char *const *argv, const char *opts, const struct h5_long_options *l_opts) { static int sp = 1; /* character index in current token */ int optchar = '?'; /* option character passed back to user */ |