diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-01-29 20:30:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-29 20:30:54 (GMT) |
commit | f64b2c0f25e4e1b27240b3b871a454a1d6f52fde (patch) | |
tree | faee84970cb4ae7628ed106e6e898a91ed1f43a4 /tools/h5stat/h5stat.c | |
parent | f8578a5e5c1316009a40b2e0ce07e5316fefeba8 (diff) | |
download | hdf5-f64b2c0f25e4e1b27240b3b871a454a1d6f52fde.zip hdf5-f64b2c0f25e4e1b27240b3b871a454a1d6f52fde.tar.gz hdf5-f64b2c0f25e4e1b27240b3b871a454a1d6f52fde.tar.bz2 |
1 8 Remove const from the argv tools/tests main sig. #1390 (#1406)
Diffstat (limited to 'tools/h5stat/h5stat.c')
-rw-r--r-- | tools/h5stat/h5stat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/h5stat/h5stat.c b/tools/h5stat/h5stat.c index eef8efa5..3ef70e2 100644 --- a/tools/h5stat/h5stat.c +++ b/tools/h5stat/h5stat.c @@ -31,7 +31,7 @@ #define H5_NFILTERS_IMPL \ 8 /* Number of currently implemented filters + one to \ accommodate for user-define filters + one \ - to accomodate datasets whithout any filters */ + to accommodate datasets without any filters */ /* Datatype statistics for datasets */ typedef struct dtype_info_t { @@ -817,7 +817,7 @@ hand_free(struct handler_t *hand) *------------------------------------------------------------------------- */ static int -parse_command_line(int argc, const char *argv[], struct handler_t **hand_ret) +parse_command_line(int argc, const char *const *argv, struct handler_t **hand_ret) { int opt; unsigned u; @@ -1588,7 +1588,7 @@ print_statistics(const char *name, const iter_t *iter) *------------------------------------------------------------------------- */ int -main(int argc, const char *argv[]) +main(int argc, char *argv[]) { iter_t iter; const char * fname = NULL; @@ -1604,7 +1604,7 @@ main(int argc, const char *argv[]) HDmemset(&iter, 0, sizeof(iter)); - if (parse_command_line(argc, argv, &hand) < 0) + if (parse_command_line(argc, (const char *const *)argv, &hand) < 0) goto done; /* enable error reporting if command line option */ |