diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-09-19 20:04:28 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-09-19 20:04:28 (GMT) |
commit | 8b5ced23dc1bd2e0e3350dc0bb68f99d8c827751 (patch) | |
tree | 085d5f92c2d60ea5451acf3385795f44647f961e /tools/h5repack/h5repack.c | |
parent | d8e10727326798447c458d91f1509cc844ecd080 (diff) | |
download | hdf5-8b5ced23dc1bd2e0e3350dc0bb68f99d8c827751.zip hdf5-8b5ced23dc1bd2e0e3350dc0bb68f99d8c827751.tar.gz hdf5-8b5ced23dc1bd2e0e3350dc0bb68f99d8c827751.tar.bz2 |
[svn-r15663] fix comments
tested: linux
Diffstat (limited to 'tools/h5repack/h5repack.c')
-rw-r--r-- | tools/h5repack/h5repack.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/tools/h5repack/h5repack.c b/tools/h5repack/h5repack.c index 2d3ff65..38740e9 100644 --- a/tools/h5repack/h5repack.c +++ b/tools/h5repack/h5repack.c @@ -320,7 +320,8 @@ static int check_options(pack_opt_t *options) } } - if (options->all_layout==1 && has_ck){ + if (options->all_layout==1 && has_ck) + { error_msg(progname, "invalid chunking input: 'all' option\ is present with other objects\n"); return -1; @@ -379,7 +380,8 @@ static int check_options(pack_opt_t *options) } /* j */ } /* i */ - if (options->all_filter==1 && has_cp){ + if (options->all_filter==1 && has_cp) + { error_msg(progname, "invalid compression input: 'all' option\ is present with other objects\n"); return -1; @@ -390,20 +392,25 @@ static int check_options(pack_opt_t *options) *------------------------------------------------------------------------- */ - if (options->grp_compact < 0) { + if (options->grp_compact < 0) + { error_msg(progname, "invalid maximum number of links to store as header messages\n"); return -1; } - if (options->grp_indexed < 0) { + if (options->grp_indexed < 0) + { error_msg(progname, "invalid minimum number of links to store in the indexed format\n"); return -1; } - if (options->grp_indexed > options->grp_compact) { + if (options->grp_indexed > options->grp_compact) + { error_msg(progname, "minimum indexed size is greater than the maximum compact size\n"); return -1; } - for (i=0; i<8; i++) { - if (options->msg_size[i]<0) { + for (i=0; i<8; i++) + { + if (options->msg_size[i]<0) + { error_msg(progname, "invalid shared message size\n"); return -1; } @@ -411,7 +418,7 @@ static int check_options(pack_opt_t *options) /*-------------------------------------------------------------------------------- - * verify new user userblock options; both file name and block size must be present + * verify new user userblock options; file name must be present *--------------------------------------------------------------------------------- */ if ( options->ublock_filename != NULL && options->ublock_size == 0 ) |