mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-01 16:28:09 +08:00
Fix function call args
This commit is contained in:
parent
8e71bbec75
commit
fcf3b93518
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user