diff options
Diffstat (limited to 'tools/h5recover')
-rw-r--r-- | tools/h5recover/Makefile.in | 1 | ||||
-rwxr-xr-x | tools/h5recover/enable_journaling.c | 4 | ||||
-rw-r--r-- | tools/h5recover/h5recover.c | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/tools/h5recover/Makefile.in b/tools/h5recover/Makefile.in index 201ef85..74ce765 100644 --- a/tools/h5recover/Makefile.in +++ b/tools/h5recover/Makefile.in @@ -216,6 +216,7 @@ SET_MAKE = @SET_MAKE@ SHELL = /bin/sh SIZE_T = @SIZE_T@ STATIC_SHARED = @STATIC_SHARED@ +STRICT_FORMAT_CHECKS = @STRICT_FORMAT_CHECKS@ STRIP = @STRIP@ TESTPARALLEL = @TESTPARALLEL@ TIME = @TIME@ diff --git a/tools/h5recover/enable_journaling.c b/tools/h5recover/enable_journaling.c index 84df3af..e4cd442 100755 --- a/tools/h5recover/enable_journaling.c +++ b/tools/h5recover/enable_journaling.c @@ -159,11 +159,11 @@ main (int ac, char **av) H5Pclose(faccpl); } - dataset=H5Dopen(file, DATASETNAME, H5P_DEFAULT); + dataset=H5Dopen2(file, DATASETNAME, H5P_DEFAULT); /* extend the dataset to 2NX rows. */ dimsf[0] = 2*NX; dimsf[1] = NY; - H5Dextend(dataset, dimsf); + H5Dset_extent(dataset, dimsf); if (!pmode){ /* write data to new rows and crash */ diff --git a/tools/h5recover/h5recover.c b/tools/h5recover/h5recover.c index 2b037be..0dfb421 100644 --- a/tools/h5recover/h5recover.c +++ b/tools/h5recover/h5recover.c @@ -621,7 +621,7 @@ main (int argc, const char *argv[]) pread(hdf5_fd, compare_buf, size, address); /* do a quick string compare on two items */ - if (HDstrcmp(body, compare_buf) != 0) { + if (HDstrcmp((const char *)body, (const char *)compare_buf) != 0) { error_msg(progname, "Entry incorrectly written into HDF5 file. Exiting.\n"); printf("Address %llx:\n", address); printf(" -- from journal: %llx\n", body); @@ -706,7 +706,7 @@ main (int argc, const char *argv[]) } /* end if */ /* obtain H5F_t pointer */ - if ((f = H5I_object(fid)) == -1) { + if (NULL == (f = H5I_object(fid))) { error_msg(progname, "Could not obtain H5F_t pointer from file id"); leave( EXIT_FAILURE ); |