diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-01-31 05:06:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-31 05:06:01 (GMT) |
commit | 79d93d1661563f3570b2d0128a07bc7d7fc93ea8 (patch) | |
tree | d2be68b11b61a649a61fdf5cdca8d5499cf2a329 /hl | |
parent | 3b575625cbae00f24217a41d3ef2eb787b2e45d4 (diff) | |
download | hdf5-79d93d1661563f3570b2d0128a07bc7d7fc93ea8.zip hdf5-79d93d1661563f3570b2d0128a07bc7d7fc93ea8.tar.gz hdf5-79d93d1661563f3570b2d0128a07bc7d7fc93ea8.tar.bz2 |
1 10 Remove const from the argv tools/tests main sig. #1390 (#1405)
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); |