summaryrefslogtreecommitdiffstats
path: root/src/H5Omtime.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-06-23 17:57:16 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-06-23 17:57:16 (GMT)
commit09ee6ebc4ca6284aef70d87a4abd6bd6d43f54f7 (patch)
treebb60773615fc7926781e7f6d1428a59fa0c7e612 /src/H5Omtime.c
parentd6bb759cbdaa4ef5326cdb4e43a9ca815ccb9710 (diff)
downloadhdf5-09ee6ebc4ca6284aef70d87a4abd6bd6d43f54f7.zip
hdf5-09ee6ebc4ca6284aef70d87a4abd6bd6d43f54f7.tar.gz
hdf5-09ee6ebc4ca6284aef70d87a4abd6bd6d43f54f7.tar.bz2
[svn-r8733] Purpose:
Code cleanup Description: Reduce compiler warnings on SGI IRIX Platforms tested: FreeBSD 4.10 (sleipnir) SGI IRIX6 (Cheryl's machine) Too minor to require full h5committest
Diffstat (limited to 'src/H5Omtime.c')
-rw-r--r--src/H5Omtime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5Omtime.c b/src/H5Omtime.c
index 0f56ee1..ac99bc1 100644
--- a/src/H5Omtime.c
+++ b/src/H5Omtime.c
@@ -120,6 +120,7 @@ H5O_mtime_new_decode(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const uint8_t *p,
H5O_shared_t UNUSED *sh)
{
time_t *mesg, the_time;
+ uint32_t tmp_time; /* Temporary copy of the time */
int version; /* Version of mtime information */
void *ret_value; /* Return value */
@@ -139,7 +140,8 @@ H5O_mtime_new_decode(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const uint8_t *p,
p+=3;
/* Get the time_t from the file */
- UINT32DECODE(p, the_time);
+ UINT32DECODE(p, tmp_time);
+ the_time=(time_t)tmp_time;
/* The return value */
if (NULL==(mesg = H5FL_MALLOC(time_t)))