0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

elim warnign on widnwos

This commit is contained in:
Dwight 2010-04-05 14:24:09 -04:00
parent caf3617fc5
commit 43fb9be758
2 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,7 @@ namespace mongo {
addressSize = sizeof(sockaddr_in);
}
}
bool SockAddr::isLocalHost() const {
switch (getType()){
case AF_INET: return getAddr() == "127.0.0.1";

View File

@ -151,7 +151,9 @@ namespace mongo {
string getAddr() const {
const int buflen=128;
#if !defined(_WIN32)
char buffer[buflen];
#endif
switch (getType()){
#ifdef _WIN32