summaryrefslogtreecommitdiffstats
path: root/tools/h5repack
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-09-19 20:06:17 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-09-19 20:06:17 (GMT)
commit205b9019cf60452ea546543fb76ea46b49509d80 (patch)
tree2b0f09f5a66f5be27e069838cd272b1fc9a3ecc5 /tools/h5repack
parent8dd19b5db53978a8ccd5d476ceaf482160e16439 (diff)
downloadhdf5-205b9019cf60452ea546543fb76ea46b49509d80.zip
hdf5-205b9019cf60452ea546543fb76ea46b49509d80.tar.gz
hdf5-205b9019cf60452ea546543fb76ea46b49509d80.tar.bz2
[svn-r15664] fix comments
tested: linux
Diffstat (limited to 'tools/h5repack')
-rw-r--r--tools/h5repack/h5repack.c23
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 )