From d0859bb17474d05e87eb9cbf3ccfd28c92c84185 Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Mon, 22 Sep 2008 13:40:38 -0500 Subject: [svn-r15678] formatted code tested: windows, linux --- tools/h5repack/h5repack.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/h5repack/h5repack.c b/tools/h5repack/h5repack.c index 38740e9..92db049 100644 --- a/tools/h5repack/h5repack.c +++ b/tools/h5repack/h5repack.c @@ -483,7 +483,8 @@ static int check_objects(const char* fname, * open the file *------------------------------------------------------------------------- */ - if((fid = h5tools_fopen(fname, H5F_ACC_RDONLY, H5P_DEFAULT, NULL, NULL, 0)) < 0){ + if((fid = h5tools_fopen(fname, H5F_ACC_RDONLY, H5P_DEFAULT, NULL, NULL, 0)) < 0) + { printf("<%s>: %s\n", fname, H5FOPENERROR ); return -1; } @@ -508,13 +509,15 @@ 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); goto out; @@ -523,7 +526,8 @@ 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: { -- cgit v0.12