]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
toTimestampStringMilli is only called from inside this file, make it static
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 1 Jul 2021 20:30:43 +0000 (22:30 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 1 Jul 2021 20:30:43 +0000 (22:30 +0200)
pdns/pdns_recursor.cc

index f1204784ddf1b534f873dc6fb1bd9ee9d3bb5272..457019077b0a3599997b08ad1b42620a9f560aa5 100644 (file)
@@ -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));