summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-01-28 22:30:33 (GMT)
committerGitHub <noreply@github.com>2022-01-28 22:30:33 (GMT)
commitad71539d30c799c497953c18352df37d83a75310 (patch)
treef078b6bc5aeef7042356f084454ba71e64879ea4 /utils
parentb5eed1b56324fc07154c2e2d8251d2b87505ca23 (diff)
downloadhdf5-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 'utils')
-rw-r--r--utils/tools/h5dwalk/h5dwalk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/tools/h5dwalk/h5dwalk.c b/utils/tools/h5dwalk/h5dwalk.c
index a1e66e0..d7e22ba 100644
--- a/utils/tools/h5dwalk/h5dwalk.c
+++ b/utils/tools/h5dwalk/h5dwalk.c
@@ -1322,7 +1322,7 @@ process_input_file(char *inputname, int myrank, int size)
}
int
-main(int argc, const char *argv[])
+main(int argc, char *argv[])
{
int i;
int rc = 0;
@@ -1352,7 +1352,7 @@ main(int argc, const char *argv[])
if (env_var) {
int enable = HDatoi(env_var);
if (enable) {
-
+
}
}
#endif
@@ -1392,7 +1392,7 @@ main(int argc, const char *argv[])
mfu_pred *pred_head = NULL;
while (!tool_selected) {
- opt = H5_get_option(argc, argv, s_opts, l_opts);
+ opt = H5_get_option(argc, (const char *const *)argv, s_opts, l_opts);
switch ((char)opt) {
default:
usage();