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 /tools/src/misc/h5mkgrp.c | |
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 'tools/src/misc/h5mkgrp.c')
-rw-r--r-- | tools/src/misc/h5mkgrp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/src/misc/h5mkgrp.c b/tools/src/misc/h5mkgrp.c index 1e66fce..1b8b23d 100644 --- a/tools/src/misc/h5mkgrp.c +++ b/tools/src/misc/h5mkgrp.c @@ -131,7 +131,7 @@ usage(const char *prog) *------------------------------------------------------------------------- */ static int -parse_command_line(int argc, const char *argv[], mkgrp_opt_t *options) +parse_command_line(int argc, const char *const *argv, mkgrp_opt_t *options) { int opt; /* Option from command line */ size_t curr_group; /* Current group name to copy */ @@ -281,7 +281,7 @@ parse_command_line(int argc, const char *argv[], mkgrp_opt_t *options) *------------------------------------------------------------------------- */ int -main(int argc, const char *argv[]) +main(int argc, char *argv[]) { hid_t fid = H5I_INVALID_HID; /* HDF5 file ID */ hid_t lcpl_id = H5I_INVALID_HID; /* Link creation property list ID */ @@ -303,7 +303,7 @@ main(int argc, const char *argv[]) } /* Parse command line */ - if (parse_command_line(argc, argv, ¶ms_g) < 0) { + if (parse_command_line(argc, (const char *const *)argv, ¶ms_g) < 0) { error_msg("unable to parse command line arguments\n"); leave(EXIT_FAILURE); } |