From aeacbe7941eaec0eaa03f35f67c9ee915e0702b6 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 8 Oct 2009 09:54:17 -0700 Subject: [PATCH] msgr: clean out dead connect-side bind code --- src/msg/SimpleMessenger.cc | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/msg/SimpleMessenger.cc b/src/msg/SimpleMessenger.cc index 4251ebd881642..dc7e0156ce4e8 100644 --- a/src/msg/SimpleMessenger.cc +++ b/src/msg/SimpleMessenger.cc @@ -823,7 +823,6 @@ int SimpleMessenger::Pipe::connect() char tag = -1; int rc; - struct sockaddr_in myAddr; struct msghdr msg; struct iovec msgvec[2]; int msglen; @@ -840,20 +839,6 @@ int SimpleMessenger::Pipe::connect() goto fail; } opened_socket(); -#if 0 - // bind any port - myAddr.sin_family = AF_INET; - myAddr.sin_addr.s_addr = htonl(INADDR_ANY); - myAddr.sin_port = htons( 0 ); - dout(10) << "binding to " << myAddr << dendl; - rc = ::bind(sd, (struct sockaddr *)&myAddr, sizeof(myAddr)); - if (rc < 0) { - char buf[80]; - dout(2) << "bind error " << myAddr - << ", " << errno << ": " << strerror_r(errno, buf, sizeof(buf)) << dendl; - goto fail; - } -#endif char buf[80]; -- 2.39.5