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 /src | |
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 '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 4c25b75..5227734 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -2561,7 +2561,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 56110ea..66ccbf3 100644 --- a/src/H5system.c +++ b/src/H5system.c @@ -1078,7 +1078,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 optopt = '?'; /* option character passed back to user */ |