summaryrefslogtreecommitdiffstats
path: root/tools/h5recover/h5recover.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-04-08 23:00:38 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-04-08 23:00:38 (GMT)
commit94383b8f2df2e784ef2e9b8a20e2051e6c57be00 (patch)
treea1fd392d79ff8a138459747a5a989d417996678b /tools/h5recover/h5recover.c
parent2bb8a8044afbaa3312dd9dae279b14fab1a6884d (diff)
downloadhdf5-94383b8f2df2e784ef2e9b8a20e2051e6c57be00.zip
hdf5-94383b8f2df2e784ef2e9b8a20e2051e6c57be00.tar.gz
hdf5-94383b8f2df2e784ef2e9b8a20e2051e6c57be00.tar.bz2
[svn-r16714] Description:
Clean up code, remove unused variables, remove "naked" printf()s, make h5recover test script work in 'srcdir' build, etc. (The h5recover tests are failing still and the script prints "PASSED" when it doesn't, but we'll work on that more next) Tested on: Mac OS X/32 10.5.6 (amazon)
Diffstat (limited to 'tools/h5recover/h5recover.c')
-rw-r--r--tools/h5recover/h5recover.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/h5recover/h5recover.c b/tools/h5recover/h5recover.c
index dda2d67..f8ca64a 100644
--- a/tools/h5recover/h5recover.c
+++ b/tools/h5recover/h5recover.c
@@ -1919,9 +1919,7 @@ get_mdj_msg_addr__scan_chunk(int fd,
break;
default:
- /* Unknown message -- scream and die. */
- success = FALSE;
-
+ /* Unknown message -- scream, but don't die. */
HDfprintf(err_file_ptr, "%sSB ext chunk %d %s\n",
indent1, chunk_num,
"appears to contain an unknown mssg.");
@@ -2049,7 +2047,7 @@ get_mdj_msg_data(int fd,
uint8_t * p;
uint16_t flags;
int32_t magic;
- int32_t path_len;
+ uint32_t path_len;
int version;
off_t offset;
FILE * err_file_ptr = stderr;
@@ -2119,7 +2117,7 @@ get_mdj_msg_data(int fd,
p = &(buf[1]);
UINT16DECODE(p, flags);
INT32DECODE(p, magic);
- INT32DECODE(p, path_len);
+ UINT32DECODE(p, path_len);
if ( (flags & MDJ_MSG__JOURNALING_ENABLED_FLAG) == 0 ) {