]> git.sesse.net Git - cubemap/commitdiff
fix potential ambiguity between ::bind() and std::bind()
authorYichen Yan <yichen.yan@inf.ethz.ch>
Thu, 6 May 2021 11:01:18 +0000 (13:01 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 6 May 2021 11:01:18 +0000 (13:01 +0200)
acceptor.cpp

index 8bc16ed846d8f23870779682ffd7118486259e2a..2fef9148d9a4a93114986a11eadbcf590dbcb463 100644 (file)
@@ -48,7 +48,7 @@ int create_server_socket(const sockaddr_in6 &addr, SocketType socket_type)
                exit(1);
        }
 
                exit(1);
        }
 
-       if (bind(server_sock, reinterpret_cast<const sockaddr *>(&addr), sizeof(addr)) == -1) {
+       if (::bind(server_sock, reinterpret_cast<const sockaddr *>(&addr), sizeof(addr)) == -1) {
                log_perror("bind");
                exit(1);
        }
                log_perror("bind");
                exit(1);
        }