summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2022-01-29 20:30:28 (GMT)
committerGitHub <noreply@github.com>2022-01-29 20:30:28 (GMT)
commit331cf6926d5f07a1edb75674299f9787d79d1d68 (patch)
tree92c1ed4535898da49c0315f7f9adf9b8e32d0e31 /src
parent9fb8b1e53a09f5b9ef0ec1bfca4d7c93f8cfe020 (diff)
downloadhdf5-331cf6926d5f07a1edb75674299f9787d79d1d68.zip
hdf5-331cf6926d5f07a1edb75674299f9787d79d1d68.tar.gz
hdf5-331cf6926d5f07a1edb75674299f9787d79d1d68.tar.bz2
1 12 Remove const from the argv tools/tests main sig. #1390 (#1404)
Diffstat (limited to 'src')
-rw-r--r--src/H5private.h5
-rw-r--r--src/H5system.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 8bbeab4..d910445 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -2045,7 +2045,7 @@ extern H5_api_t H5_g;
#define H5_API_LOCK
#define H5_API_UNLOCK
-/* disable cancelability (sequential version) */
+/* disable cancellability (sequential version) */
#define H5_API_UNSET_CANCEL
#define H5_API_SET_CANCEL
@@ -2641,7 +2641,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 096200b..3da5f85 100644
--- a/src/H5system.c
+++ b/src/H5system.c
@@ -1081,7 +1081,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 */