summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJacob Smith <jake.smith@hdfgroup.org>2018-10-02 15:50:37 (GMT)
committerJacob Smith <jake.smith@hdfgroup.org>2018-10-02 15:50:37 (GMT)
commitf5114fcddb654783af384e00035ea6e8bb63fc9b (patch)
treee3ec50d6aeb827a56a9199c2e8cb0d811d72aad4 /src
parentff7d250093173d8d5cc359f8a12c7d17476cce09 (diff)
downloadhdf5-f5114fcddb654783af384e00035ea6e8bb63fc9b.zip
hdf5-f5114fcddb654783af384e00035ea6e8bb63fc9b.tar.gz
hdf5-f5114fcddb654783af384e00035ea6e8bb63fc9b.tar.bz2
Remove unnecessary H5_now() call; remove ohdr v2 mtime addition.
Diffstat (limited to 'src')
-rw-r--r--src/H5Dint.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/H5Dint.c b/src/H5Dint.c
index 5448316..c378326 100644
--- a/src/H5Dint.c
+++ b/src/H5Dint.c
@@ -837,17 +837,13 @@ H5D__calculate_minimum_header_size( \
if (H5O_OH_GET_VERSION(ohdr) == 1) {
/* v1 object headers store modification time as a message */
- time_t mtime = H5_now();
+ time_t mtime;
ret_value += H5O_msg_size_oh(
file,
ohdr,
H5O_MTIME_NEW_ID,
&mtime,
0);
- } else { /* "version 2" */
- /* TODO: is this backwards? reduce space if _not_ set? */
- /* 4 4-byte (32-bit) fields: atime, mtime, ctime, btime */
- ret_value += 16;
}
}