summaryrefslogtreecommitdiffstats
path: root/tools/src/h5repack/h5repack_main.c
diff options
context:
space:
mode:
authorJacob Smith <jake.smith@hdfgroup.org>2019-06-21 17:05:54 (GMT)
committerJacob Smith <jake.smith@hdfgroup.org>2019-06-21 17:05:54 (GMT)
commit9103fd59530cc45cef39cba81e0f1330a94b4807 (patch)
treee89d3114cefdda0e07f839d603f5b89aa1fd4ce5 /tools/src/h5repack/h5repack_main.c
parent27d5742b3956622dd41d2edf89d20314224c5f38 (diff)
downloadhdf5-9103fd59530cc45cef39cba81e0f1330a94b4807.zip
hdf5-9103fd59530cc45cef39cba81e0f1330a94b4807.tar.gz
hdf5-9103fd59530cc45cef39cba81e0f1330a94b4807.tar.bz2
Undo some formatting modifications.
Update MANIFEST.
Diffstat (limited to 'tools/src/h5repack/h5repack_main.c')
-rw-r--r--tools/src/h5repack/h5repack_main.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/src/h5repack/h5repack_main.c b/tools/src/h5repack/h5repack_main.c
index efab3f0..19eabd0 100644
--- a/tools/src/h5repack/h5repack_main.c
+++ b/tools/src/h5repack/h5repack_main.c
@@ -282,8 +282,7 @@ int read_info(const char *filename, pack_opt_t *options)
int i, rc = 1;
int ret_value = EXIT_SUCCESS;
- fp = HDfopen(filename, "r");
- if ((FILE *)NULL == fp) {
+ if (NULL == (fp = HDfopen(filename, "r"))) {
error_msg("cannot open options file %s\n", filename);
h5tools_setstatus(EXIT_FAILURE);
ret_value = EXIT_FAILURE;
@@ -417,7 +416,14 @@ int parse_command_line(int argc, const char **argv, pack_opt_t* options)
int ret_value = 0;
/* parse command line options */
+#if 0
while (EOF != (opt = get_option(argc, argv, s_opts, l_opts))) {
+#else
+ for (opt = get_option(argc, argv, s_opts, l_opts);
+ opt != EOF;
+ opt = get_option(argc, argv, s_opts, l_opts))
+ {
+#endif
switch ((char) opt) {
/* -i for backward compatibility */
@@ -654,7 +660,7 @@ int parse_command_line(int argc, const char **argv, pack_opt_t* options)
default:
break;
- } /* switch */
+ } /* end switch */
} /* end while there are more options to parse */
/* If neither -i nor -o given, get in and out files positionally */