diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-01-29 20:30:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-29 20:30:28 (GMT) |
commit | 331cf6926d5f07a1edb75674299f9787d79d1d68 (patch) | |
tree | 92c1ed4535898da49c0315f7f9adf9b8e32d0e31 /tools/src/h5repack/h5repack_main.c | |
parent | 9fb8b1e53a09f5b9ef0ec1bfca4d7c93f8cfe020 (diff) | |
download | hdf5-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 'tools/src/h5repack/h5repack_main.c')
-rw-r--r-- | tools/src/h5repack/h5repack_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/src/h5repack/h5repack_main.c b/tools/src/h5repack/h5repack_main.c index 3526268..4882652 100644 --- a/tools/src/h5repack/h5repack_main.c +++ b/tools/src/h5repack/h5repack_main.c @@ -18,7 +18,7 @@ /* Name of tool */ #define PROGRAMNAME "h5repack" -static int parse_command_line(int argc, const char **argv, pack_opt_t *options); +static int parse_command_line(int argc, const char *const *argv, pack_opt_t *options); static void leave(int ret) H5_ATTR_NORETURN; /* module-scoped variables */ @@ -374,7 +374,7 @@ read_info(const char *filename, pack_opt_t *options) goto done; } - /* find begining of info */ + /* find beginning of info */ i = 0; c = '0'; while (c != ' ') { @@ -482,7 +482,7 @@ set_sort_order(const char *form) *------------------------------------------------------------------------- */ static int -parse_command_line(int argc, const char **argv, pack_opt_t *options) +parse_command_line(int argc, const char *const *argv, pack_opt_t *options) { h5tools_vol_info_t in_vol_info; h5tools_vol_info_t out_vol_info; @@ -858,7 +858,7 @@ done: *------------------------------------------------------------------------- */ int -main(int argc, const char **argv) +main(int argc, char **argv) { pack_opt_t options; /*the global options */ int parse_ret; @@ -888,7 +888,7 @@ main(int argc, const char **argv) /* Initialize default indexing options */ sort_by = H5_INDEX_CRT_ORDER; - parse_ret = parse_command_line(argc, argv, &options); + parse_ret = parse_command_line(argc, (const char *const *)argv, &options); if (parse_ret < 0) { HDprintf("Error occurred while parsing command-line options\n"); h5tools_setstatus(EXIT_FAILURE); |