From 6152c8d8fe0dd2e874e4141ef751ad65dc7bf1c3 Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Thu, 26 May 2011 13:28:19 +0200 Subject: [PATCH] Portability fix for OpenBSD in time quota external acl helper. --- helpers/external_acl/time_quota/ext_time_quota_acl.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpers/external_acl/time_quota/ext_time_quota_acl.cc b/helpers/external_acl/time_quota/ext_time_quota_acl.cc index 21bb9487b3..f7323b2838 100644 --- a/helpers/external_acl/time_quota/ext_time_quota_acl.cc +++ b/helpers/external_acl/time_quota/ext_time_quota_acl.cc @@ -96,7 +96,8 @@ static void vlog(const char *level, const char *format, va_list args) { time_t now = time(NULL); - fprintf(logfile, "%ld %s| %s: ", now, program_name, level); + fprintf(logfile, "%ld %s| %s: ", static_cast(now), + program_name, level); vfprintf (logfile, format, args); fflush(logfile); } -- 2.47.2