diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-09-22 18:40:38 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-09-22 18:40:38 (GMT) |
commit | d0859bb17474d05e87eb9cbf3ccfd28c92c84185 (patch) | |
tree | 2e3eed6452d375140b63000ff8d0f9dab21036a6 /tools/h5repack | |
parent | 071e281a3df70893b975d65a3a21f11a47cb43aa (diff) | |
download | hdf5-d0859bb17474d05e87eb9cbf3ccfd28c92c84185.zip hdf5-d0859bb17474d05e87eb9cbf3ccfd28c92c84185.tar.gz hdf5-d0859bb17474d05e87eb9cbf3ccfd28c92c84185.tar.bz2 |
[svn-r15678] formatted code
tested: windows, linux
Diffstat (limited to 'tools/h5repack')
-rw-r--r-- | tools/h5repack/h5repack.c | 12 |
1 files 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: { |