Skip to content

Commit

Permalink
Committing clang-format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 12, 2024
1 parent af19f1f commit 1248819
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/H5Omtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ H5O__mtime_new_encode(H5F_t H5_ATTR_UNUSED *f, bool H5_ATTR_UNUSED disable_share
*-------------------------------------------------------------------------
*/
static herr_t
H5O__mtime_encode(H5F_t H5_ATTR_UNUSED *f, bool H5_ATTR_UNUSED disable_shared, uint8_t *p, /*size_t p_size, */ const void *_mesg)
H5O__mtime_encode(H5F_t H5_ATTR_UNUSED *f, bool H5_ATTR_UNUSED disable_shared, uint8_t *p,
/*size_t p_size, */ const void *_mesg)
{
const time_t *mesg = (const time_t *)_mesg;
struct tm *tm;
Expand All @@ -271,8 +272,8 @@ H5O__mtime_encode(H5F_t H5_ATTR_UNUSED *f, bool H5_ATTR_UNUSED disable_shared, u

/* encode */
tm = HDgmtime(mesg);
sprintf((char *)p, /*p_size,*/ "%04d%02d%02d%02d%02d%02d", 1900 + tm->tm_year, 1 + tm->tm_mon, tm->tm_mday,
tm->tm_hour, tm->tm_min, tm->tm_sec);
sprintf((char *)p, /*p_size,*/ "%04d%02d%02d%02d%02d%02d", 1900 + tm->tm_year, 1 + tm->tm_mon,
tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec);

FUNC_LEAVE_NOAPI(SUCCEED)
} /* end H5O__mtime_encode() */
Expand Down

0 comments on commit 1248819

Please sign in to comment.