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 /hl | |
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 'hl')
-rw-r--r-- | hl/tools/h5watch/extend_dset.c | 2 | ||||
-rw-r--r-- | hl/tools/h5watch/h5watch.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/hl/tools/h5watch/extend_dset.c b/hl/tools/h5watch/extend_dset.c index 282f5c2..07a4053 100644 --- a/hl/tools/h5watch/extend_dset.c +++ b/hl/tools/h5watch/extend_dset.c @@ -392,7 +392,7 @@ error: *********************************************************************** */ int -main(int argc, const char *argv[]) +main(int argc, char *argv[]) { char *dname = NULL; char *fname = NULL; diff --git a/hl/tools/h5watch/h5watch.c b/hl/tools/h5watch/h5watch.c index afbc31d..bfb0115 100644 --- a/hl/tools/h5watch/h5watch.c +++ b/hl/tools/h5watch/h5watch.c @@ -51,7 +51,7 @@ static herr_t process_cmpd_fields(hid_t fid, char *dsetname); static herr_t check_dataset(hid_t fid, char *dsetname); static void leave(int ret); static void usage(const char *prog); -static void parse_command_line(int argc, const char *argv[]); +static void parse_command_line(int argc, const char *const *argv); /* * Command-line options: The user can only specify long-named parameters. @@ -665,7 +665,7 @@ usage(const char *prog) *------------------------------------------------------------------------- */ static void -parse_command_line(int argc, const char *argv[]) +parse_command_line(int argc, const char *const *argv) { int opt; /* Command line option */ int tmp; @@ -790,7 +790,7 @@ catch_signal(int H5_ATTR_UNUSED signo) *------------------------------------------------------------------------- */ int -main(int argc, const char *argv[]) +main(int argc, char *argv[]) { char drivername[50]; /* VFD name */ char *fname = NULL; /* File name */ @@ -819,7 +819,7 @@ main(int argc, const char *argv[]) } /* parse command line options */ - parse_command_line(argc, argv); + parse_command_line(argc, (const char *const *)argv); if (argc <= H5_optind) { error_msg("missing dataset name\n"); @@ -921,7 +921,7 @@ main(int argc, const char *argv[]) } } - /* If everything is fine, start monitoring the datset */ + /* If everything is fine, start monitoring the dataset */ if (h5tools_getstatus() != EXIT_FAILURE) if (monitor_dataset(fid, dname) < 0) h5tools_setstatus(EXIT_FAILURE); |