diff options
-rw-r--r-- | src/client/ClientNew.cxx | 2 | ||||
-rw-r--r-- | src/event/ServerSocket.cxx | 2 | ||||
-rw-r--r-- | src/net/ToString.cxx | 2 | ||||
-rw-r--r-- | src/net/ToString.hxx | 2 | ||||
-rw-r--r-- | src/output/plugins/httpd/HttpdOutputPlugin.cxx | 2 | ||||
-rw-r--r-- | test/run_resolver.cxx | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/src/client/ClientNew.cxx b/src/client/ClientNew.cxx index 8e5c9fc36..90c81f2c6 100644 --- a/src/client/ClientNew.cxx +++ b/src/client/ClientNew.cxx @@ -62,7 +62,7 @@ client_new(EventLoop &loop, Partition &partition, int fd, SocketAddress address, int uid) { static unsigned int next_client_num; - const auto remote = sockaddr_to_string(address); + const auto remote = ToString(address); assert(fd >= 0); diff --git a/src/event/ServerSocket.cxx b/src/event/ServerSocket.cxx index c963e79dc..69e62f897 100644 --- a/src/event/ServerSocket.cxx +++ b/src/event/ServerSocket.cxx @@ -112,7 +112,7 @@ public: gcc_pure std::string ToString() const { - return sockaddr_to_string(address); + return ::ToString(address); } void SetFD(int _fd) { diff --git a/src/net/ToString.cxx b/src/net/ToString.cxx index 860820003..579e2ddcb 100644 --- a/src/net/ToString.cxx +++ b/src/net/ToString.cxx @@ -102,7 +102,7 @@ UnmapV4(SocketAddress src, struct sockaddr_in &buffer) #endif std::string -sockaddr_to_string(SocketAddress address) +ToString(SocketAddress address) { #ifdef HAVE_UN if (address.GetFamily() == AF_UNIX) diff --git a/src/net/ToString.hxx b/src/net/ToString.hxx index 8027e5267..bc41a8525 100644 --- a/src/net/ToString.hxx +++ b/src/net/ToString.hxx @@ -33,6 +33,6 @@ class SocketAddress; */ gcc_pure std::string -sockaddr_to_string(SocketAddress address); +ToString(SocketAddress address); #endif diff --git a/src/output/plugins/httpd/HttpdOutputPlugin.cxx b/src/output/plugins/httpd/HttpdOutputPlugin.cxx index 3ed395e63..d13f646f3 100644 --- a/src/output/plugins/httpd/HttpdOutputPlugin.cxx +++ b/src/output/plugins/httpd/HttpdOutputPlugin.cxx @@ -209,7 +209,7 @@ HttpdOutput::OnAccept(int fd, SocketAddress address, gcc_unused int uid) #ifdef HAVE_LIBWRAP if (address.GetFamily() != AF_UNIX) { - const auto hostaddr = sockaddr_to_string(address); + const auto hostaddr = ToString(address); // TODO: shall we obtain the program name from argv[0]? const char *progname = "mpd"; diff --git a/test/run_resolver.cxx b/test/run_resolver.cxx index a66dd6778..1fe458cfc 100644 --- a/test/run_resolver.cxx +++ b/test/run_resolver.cxx @@ -52,7 +52,7 @@ int main(int argc, char **argv) } for (const struct addrinfo *i = ai; i != NULL; i = i->ai_next) { - const auto s = sockaddr_to_string({i->ai_addr, i->ai_addrlen}); + const auto s = ToString({i->ai_addr, i->ai_addrlen}); printf("%s\n", s.c_str()); } |