diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/h5debug.c | 9 | ||||
-rw-r--r-- | tools/h5ls.c | 7 |
2 files changed, 12 insertions, 4 deletions
diff --git a/tools/h5debug.c b/tools/h5debug.c index 97b5e63..c2364a1 100644 --- a/tools/h5debug.c +++ b/tools/h5debug.c @@ -24,6 +24,10 @@ #include <H5HLprivate.h> #include <H5Oprivate.h> +/* File drivers */ +#include <H5FDfamily.h> + + #define INDENT 3 #define VCOL 50 @@ -60,7 +64,7 @@ main(int argc, char *argv[]) */ if (strchr (argv[1], '%')) { plist = H5Pcreate (H5P_FILE_ACCESS); - H5Pset_family (plist, 0, H5P_DEFAULT); + H5Pset_fapl_family (plist, 0, H5P_DEFAULT); } if ((fid = H5Fopen(argv[1], H5F_ACC_RDONLY, plist)) < 0) { fprintf(stderr, "cannot open file\n"); @@ -85,8 +89,7 @@ main(int argc, char *argv[]) * Read the signature at the specified file position. */ HDfprintf(stdout, "Reading signature at address %a (rel)\n", addr); - if (H5F_block_read(f, addr, (hsize_t)sizeof(sig), &H5F_xfer_dflt, - sig)<0) { + if (H5F_block_read(f, addr, (hsize_t)sizeof(sig), H5P_DEFAULT, sig)<0) { fprintf(stderr, "cannot read signature\n"); HDexit(3); } diff --git a/tools/h5ls.c b/tools/h5ls.c index 76bcd30..a77d413 100644 --- a/tools/h5ls.c +++ b/tools/h5ls.c @@ -16,6 +16,11 @@ #include <h5tools.h> /* + * File drivers + */ +#include <H5FDfamily.h> + +/* * If defined then include the file name as part of the object name when * printing full object names. Otherwise leave the file name off. */ @@ -2033,7 +2038,7 @@ main (int argc, char *argv[]) /* Choose a file driver*/ plist = H5Pcreate(H5P_FILE_ACCESS); if (strchr(fname, '%')) { - H5Pset_family(plist, 0, H5P_DEFAULT); + H5Pset_fapl_family(plist, 0, H5P_DEFAULT); } /* Try to open the file */ |