diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-08-31 14:02:48 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-08-31 14:02:48 (GMT) |
commit | fcf3b935185969e5102859cc535dfd4024a6ef42 (patch) | |
tree | faef19255b04589c36cdb1395ccfd8b60d073613 /tools | |
parent | 8e71bbec754ef11728dab6108b570ffbc7228407 (diff) | |
download | hdf5-fcf3b935185969e5102859cc535dfd4024a6ef42.zip hdf5-fcf3b935185969e5102859cc535dfd4024a6ef42.tar.gz hdf5-fcf3b935185969e5102859cc535dfd4024a6ef42.tar.bz2 |
Fix function call args
Diffstat (limited to 'tools')
-rw-r--r-- | tools/src/h5repack/h5repack_copy.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/src/h5repack/h5repack_copy.c b/tools/src/h5repack/h5repack_copy.c index 501f084..8e82b11 100644 --- a/tools/src/h5repack/h5repack_copy.c +++ b/tools/src/h5repack/h5repack_copy.c @@ -1487,9 +1487,9 @@ static int copy_user_block(const char *infile, const char *outfile, hsize_t size /* User block must be any power of 2 equal to 512 or greater (512, 1024, 2048, etc.) */ /* Open files */ - if ((infid = HDopen(infile, O_RDONLY)) < 0) + if ((infid = HDopen(infile, O_RDONLY, 0)) < 0) HGOTO_ERROR(FAIL, H5E_tools_min_id_g, "HDopen failed"); - if ((outfid = HDopen(outfile, O_WRONLY)) < 0) + if ((outfid = HDopen(outfile, O_WRONLY, 0644)) < 0) HGOTO_ERROR(FAIL, H5E_tools_min_id_g, "HDopen failed"); /* Copy the userblock from the input file to the output file */ @@ -1581,8 +1581,7 @@ void print_user_block(const char *filename, hid_t fid) } /* open file */ - if((fh = HDopen(filename, O_RDONLY)) < 0) { - error_msg("failed to open file\n"); + if((fh = HDopen(filename, O_RDONLY, 0)) < 0) { HGOTO_ERROR(H5E_tools_g, H5E_tools_min_id_g, "HDopen failed"); } |