From fcf3b935185969e5102859cc535dfd4024a6ef42 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Thu, 31 Aug 2017 09:02:48 -0500 Subject: Fix function call args --- tools/src/h5repack/h5repack_copy.c | 7 +++---- 1 file 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"); } -- cgit v0.12