From: Peter van Dijk Date: Thu, 1 Jul 2021 20:30:43 +0000 (+0200) Subject: toTimestampStringMilli is only called from inside this file, make it static X-Git-Tag: dnsdist-1.7.0-alpha1~108^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f2abbbe0e9dcf6aba10c83b66dbb65606baecbd;p=thirdparty%2Fpdns.git toTimestampStringMilli is only called from inside this file, make it static --- 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));