Replace cases of time_t with mbedtls_time_t

Signed-off-by: Ben Taylor <ben.taylor@linaro.org>
This commit is contained in:
Ben Taylor
2025-09-26 15:25:43 +01:00
parent ee1991a387
commit 7e8e438fce
3 changed files with 2 additions and 3 deletions

View File

@@ -277,7 +277,7 @@ static void print_time(const uint64_t *time)
{
#if defined(MBEDTLS_HAVE_TIME)
char buf[20];
struct tm *t = gmtime((time_t *) time);
struct tm *t = gmtime((mbedtls_time_t *) time);
static const char format[] = "%Y-%m-%d %H:%M:%S";
if (NULL != t) {
strftime(buf, sizeof(buf), format, t);

View File

@@ -25,7 +25,6 @@
#if defined(MBEDTLS_HAVE_TIME)
#include <time.h>
#define mbedtls_time time
#define mbedtls_time_t time_t
#endif
#define mbedtls_printf printf
#define mbedtls_calloc calloc