Fix function call args

This commit is contained in:
Allen Byrne 2017-08-31 09:02:48 -05:00
parent 8e71bbec75
commit fcf3b93518

View File

@ -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");
}