diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-06-23 17:56:57 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-06-23 17:56:57 (GMT) |
commit | 6fc0bffac6e099b32c2e195207625e66e5b40c05 (patch) | |
tree | 792d54e2b6cd48c48db4758f5ac2f64564e4e014 /src/H5Omtime.c | |
parent | 7c3df64cc4742c0316ca81aeef67bd95a5737c70 (diff) | |
download | hdf5-6fc0bffac6e099b32c2e195207625e66e5b40c05.zip hdf5-6fc0bffac6e099b32c2e195207625e66e5b40c05.tar.gz hdf5-6fc0bffac6e099b32c2e195207625e66e5b40c05.tar.bz2 |
[svn-r8732] 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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5Omtime.c b/src/H5Omtime.c index ac285bd..9e9702d 100644 --- a/src/H5Omtime.c +++ b/src/H5Omtime.c @@ -116,6 +116,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 */ @@ -135,7 +136,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))) |