summaryrefslogtreecommitdiffstats
path: root/src/H5Omtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Omtime.c')
-rw-r--r--src/H5Omtime.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/H5Omtime.c b/src/H5Omtime.c
index 8205a01..f89b670 100644
--- a/src/H5Omtime.c
+++ b/src/H5Omtime.c
@@ -118,8 +118,8 @@ H5O__mtime_new_decode(H5F_t H5_ATTR_NDEBUG_UNUSED *f, H5O_t H5_ATTR_UNUSED *open
FUNC_ENTER_PACKAGE
- HDassert(f);
- HDassert(p);
+ assert(f);
+ assert(p);
if (H5_IS_BUFFER_OVERFLOW(p, 1, p_end))
HGOTO_ERROR(H5E_OHDR, H5E_OVERFLOW, NULL, "ran off end of input buffer while decoding");
@@ -177,8 +177,8 @@ H5O__mtime_decode(H5F_t H5_ATTR_NDEBUG_UNUSED *f, H5O_t H5_ATTR_UNUSED *open_oh,
FUNC_ENTER_PACKAGE
- HDassert(f);
- HDassert(p);
+ assert(f);
+ assert(p);
/* Buffer should have 14 message bytes and 2 reserved bytes */
if (H5_IS_BUFFER_OVERFLOW(p, 16, p_end))
@@ -188,7 +188,7 @@ H5O__mtime_decode(H5F_t H5_ATTR_NDEBUG_UNUSED *f, H5O_t H5_ATTR_UNUSED *open_oh,
HGOTO_ERROR(H5E_OHDR, H5E_CANTINIT, NULL, "badly formatted modification time message")
/* Convert YYYYMMDDhhmmss UTC to a time_t. */
- HDmemset(&tm, 0, sizeof tm);
+ memset(&tm, 0, sizeof tm);
tm.tm_year = (p[0] - '0') * 1000 + (p[1] - '0') * 100 + (p[2] - '0') * 10 + (p[3] - '0') - 1900;
tm.tm_mon = (p[4] - '0') * 10 + (p[5] - '0') - 1;
tm.tm_mday = (p[6] - '0') * 10 + (p[7] - '0');
@@ -232,9 +232,9 @@ H5O__mtime_new_encode(H5F_t H5_ATTR_UNUSED *f, hbool_t H5_ATTR_UNUSED disable_sh
FUNC_ENTER_PACKAGE_NOERR
/* check args */
- HDassert(f);
- HDassert(p);
- HDassert(mesg);
+ assert(f);
+ assert(p);
+ assert(mesg);
/* Version */
*p++ = H5O_MTIME_VERSION;
@@ -272,9 +272,9 @@ H5O__mtime_encode(H5F_t H5_ATTR_UNUSED *f, hbool_t H5_ATTR_UNUSED disable_shared
FUNC_ENTER_PACKAGE_NOERR
/* check args */
- HDassert(f);
- HDassert(p);
- HDassert(mesg);
+ assert(f);
+ assert(p);
+ assert(mesg);
/* encode */
tm = HDgmtime(mesg);
@@ -309,7 +309,7 @@ H5O__mtime_copy(const void *_mesg, void *_dest)
FUNC_ENTER_PACKAGE
/* check args */
- HDassert(mesg);
+ assert(mesg);
if (!dest && NULL == (dest = H5FL_MALLOC(time_t)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
@@ -347,8 +347,8 @@ H5O__mtime_new_size(const H5F_t H5_ATTR_UNUSED *f, hbool_t H5_ATTR_UNUSED disabl
FUNC_ENTER_PACKAGE_NOERR
/* check args */
- HDassert(f);
- HDassert(mesg);
+ assert(f);
+ assert(mesg);
FUNC_LEAVE_NOAPI(8)
} /* end H5O__mtime_new_size() */
@@ -377,8 +377,8 @@ H5O__mtime_size(const H5F_t H5_ATTR_UNUSED *f, hbool_t H5_ATTR_UNUSED disable_sh
FUNC_ENTER_PACKAGE_NOERR
/* check args */
- HDassert(f);
- HDassert(mesg);
+ assert(f);
+ assert(mesg);
FUNC_LEAVE_NOAPI(16)
} /* end H5O__mtime_size() */
@@ -400,7 +400,7 @@ H5O__mtime_free(void *mesg)
{
FUNC_ENTER_PACKAGE_NOERR
- HDassert(mesg);
+ assert(mesg);
mesg = H5FL_FREE(time_t, mesg);
@@ -429,17 +429,17 @@ H5O__mtime_debug(H5F_t H5_ATTR_UNUSED *f, const void *_mesg, FILE *stream, int i
FUNC_ENTER_PACKAGE_NOERR
/* check args */
- HDassert(f);
- HDassert(mesg);
- HDassert(stream);
- HDassert(indent >= 0);
- HDassert(fwidth >= 0);
+ assert(f);
+ assert(mesg);
+ assert(stream);
+ assert(indent >= 0);
+ assert(fwidth >= 0);
/* debug */
tm = HDlocaltime(mesg);
HDstrftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S %Z", tm);
- HDfprintf(stream, "%*s%-*s %s\n", indent, "", fwidth, "Time:", buf);
+ fprintf(stream, "%*s%-*s %s\n", indent, "", fwidth, "Time:", buf);
FUNC_LEAVE_NOAPI(SUCCEED)
} /* end H5O__mtime_debug() */