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/h5dump | |
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/h5dump')
-rw-r--r-- | tools/src/h5dump/h5dump.c | 8 | ||||
-rw-r--r-- | tools/src/h5dump/h5dump_ddl.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/tools/src/h5dump/h5dump.c b/tools/src/h5dump/h5dump.c index 4f23bc9..b50bc94 100644 --- a/tools/src/h5dump/h5dump.c +++ b/tools/src/h5dump/h5dump.c @@ -816,7 +816,7 @@ free_handler(struct handler_t *hand, int len) *------------------------------------------------------------------------- */ static struct handler_t * -parse_command_line(int argc, const char *argv[]) +parse_command_line(int argc, const char *const *argv) { struct handler_t *hand = NULL; struct handler_t *last_dset = NULL; @@ -1298,7 +1298,7 @@ error: *------------------------------------------------------------------------- */ int -main(int argc, const char *argv[]) +main(int argc, char *argv[]) { hid_t fid = H5I_INVALID_HID; hid_t gid = H5I_INVALID_HID; @@ -1318,7 +1318,7 @@ main(int argc, const char *argv[]) /* Initialize h5tools lib */ h5tools_init(); - if ((hand = parse_command_line(argc, argv)) == NULL) { + if ((hand = parse_command_line(argc, (const char *const *)argv)) == NULL) { goto done; } @@ -1474,7 +1474,7 @@ main(int argc, const char *argv[]) dset_table = table_list.tables[0].dset_table; type_table = table_list.tables[0].type_table; - /* does there exist unamed committed datatype */ + /* does there exist unnamed committed datatype */ for (u = 0; u < type_table->nobjs; u++) if (!type_table->objs[u].recorded) { unamedtype = 1; diff --git a/tools/src/h5dump/h5dump_ddl.c b/tools/src/h5dump/h5dump_ddl.c index 80e8088..1e92057 100644 --- a/tools/src/h5dump/h5dump_ddl.c +++ b/tools/src/h5dump/h5dump_ddl.c @@ -829,7 +829,7 @@ dump_group(hid_t gid, const char *name) if (!HDstrcmp(name, "/") && unamedtype) { unsigned u; /* Local index variable */ - /* dump unamed type in root group */ + /* dump unnamed type in root group */ for (u = 0; u < type_table->nobjs; u++) if (!type_table->objs[u].recorded) { char *obj_tok_str = NULL; @@ -1283,7 +1283,7 @@ dump_fcontents(hid_t fid) { PRINTSTREAM(rawoutstream, "%s %s\n", FILE_CONTENTS, BEGIN); - /* special case of unamed types in root group */ + /* special case of unnamed types in root group */ if (unamedtype) { unsigned u; @@ -1960,7 +1960,7 @@ handle_datatypes(hid_t fid, const char *type, void H5_ATTR_UNUSED *data, int pe, if (!type_table->objs[idx].recorded) { char *obj_tok_str = NULL; - /* unamed datatype */ + /* unnamed datatype */ H5Otoken_to_str(fid, &type_table->objs[idx].obj_token, &obj_tok_str); HDsprintf(name, "/#%s", obj_tok_str); H5free_memory(obj_tok_str); |