Remove g_time1() call

This is not year 2038 compliant on systems with 32-bit integers.

The call can be replaced with the standard C time() call. On
POSIX systems, time_t is guaranteed to be an integer type.
This commit is contained in:
matt335672
2024-12-04 10:12:53 +00:00
parent 54a6bf11d7
commit b02689ab44
6 changed files with 8 additions and 38 deletions
+2 -2
View File
@@ -57,8 +57,8 @@ log_authfail_message(const char *username, const char *ip_addr)
{
ip_addr = "unknown";
}
LOG(LOG_LEVEL_INFO, "AUTHFAIL: user=%s ip=%s time=%d",
username, ip_addr, g_time1());
LOG(LOG_LEVEL_INFO, "AUTHFAIL: user=%s ip=%s time=%ld",
username, ip_addr, (long)time(NULL));
}
/******************************************************************************/