From 3f2abbbe0e9dcf6aba10c83b66dbb65606baecbd Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 1 Jul 2021 22:30:43 +0200 Subject: [PATCH] toTimestampStringMilli is only called from inside this file, make it static --- pdns/pdns_recursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index f1204784dd..457019077b 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -5599,7 +5599,7 @@ catch(...) { //static std::string s_timestampFormat = "%m-%dT%H:%M:%S"; static std::string s_timestampFormat = "%s"; -const char* toTimestampStringMilli(const struct timeval& tv, char *buf, size_t sz) +static const char* toTimestampStringMilli(const struct timeval& tv, char *buf, size_t sz) { struct tm tm; size_t len = strftime(buf, sz, s_timestampFormat.c_str(), localtime_r(&tv.tv_sec, &tm)); -- 2.47.2