summaryrefslogtreecommitdiffstats
path: root/tools/h5repack/h5repack.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-01-30 04:29:13 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-01-30 04:29:13 (GMT)
commitfd70b2afa883f94718ffb7f4f33d104d76e3fe0a (patch)
treec1add8db2a4848202d86a9b274bfaf8c7b80e961 /tools/h5repack/h5repack.c
parent35b0159a0a5f1f4b80e305204ea51a742b052403 (diff)
downloadhdf5-fd70b2afa883f94718ffb7f4f33d104d76e3fe0a.zip
hdf5-fd70b2afa883f94718ffb7f4f33d104d76e3fe0a.tar.gz
hdf5-fd70b2afa883f94718ffb7f4f33d104d76e3fe0a.tar.bz2
[svn-r18197] Description:
Trim trailing whitespace from source code files with this command: find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.f90" \) -print |xargs -n 1 sed -i "" 's/[[:blank:]]*$//' Tested on: None - eyeballed only
Diffstat (limited to 'tools/h5repack/h5repack.c')
-rw-r--r--tools/h5repack/h5repack.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/h5repack/h5repack.c b/tools/h5repack/h5repack.c
index 473090f..db0b158 100644
--- a/tools/h5repack/h5repack.c
+++ b/tools/h5repack/h5repack.c
@@ -90,7 +90,7 @@ int h5repack(const char* infile,
*-------------------------------------------------------------------------
*/
-int
+int
h5repack_init(pack_opt_t *options, int verbose, H5F_file_space_type_t strategy, hsize_t threshold)
{
int k, n;
@@ -271,7 +271,7 @@ static int check_options(pack_opt_t *options)
if (options->verbose && have_request(options) /* only print if requested */)
{
printf("Objects to modify layout are...\n");
- if (options->all_layout==1)
+ if (options->all_layout==1)
{
switch (options->layout_g)
{
@@ -293,7 +293,7 @@ static int check_options(pack_opt_t *options)
return -1;
}
printf(" Apply %s layout to all\n", slayout);
- if (H5D_CHUNKED==options->layout_g)
+ if (H5D_CHUNKED==options->layout_g)
{
printf("with dimension [");
for ( j = 0; j < options->chunk_g.rank; j++)
@@ -399,24 +399,24 @@ 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++)
+ for (i=0; i<8; i++)
{
- if (options->msg_size[i]<0)
+ if (options->msg_size[i]<0)
{
error_msg(progname, "invalid shared message size\n");
return -1;
@@ -516,14 +516,14 @@ static int check_objects(const char* fname,
if(options->verbose)
printf("Opening file <%s>. Searching for objects to modify...\n", fname);
- for(i = 0; i < options->op_tbl->nelems; i++)
+ for(i = 0; i < options->op_tbl->nelems; i++)
{
char* name=options->op_tbl->objs[i].path;
if(options->verbose)
printf(" <%s>",name);
/* the input object names are present in the file and are valid */
- if(h5trav_getindext(name, travt) < 0)
+ if(h5trav_getindext(name, travt) < 0)
{
error_msg(progname, "%s Could not find <%s> in file <%s>. Exiting...\n",
(options->verbose?"\n":""),name,fname);
@@ -533,7 +533,7 @@ static int check_objects(const char* fname,
printf("...Found\n");
/* check for extra filter conditions */
- switch(options->op_tbl->objs[i].filter->filtn)
+ switch(options->op_tbl->objs[i].filter->filtn)
{
/* chunk size must be smaller than pixels per block */
case H5Z_FILTER_SZIP: