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:
parent
caf3617fc5
commit
43fb9be758
@ -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";
|
||||
|
@ -151,7 +151,9 @@ namespace mongo {
|
||||
|
||||
string getAddr() const {
|
||||
const int buflen=128;
|
||||
#if !defined(_WIN32)
|
||||
char buffer[buflen];
|
||||
#endif
|
||||
|
||||
switch (getType()){
|
||||
#ifdef _WIN32
|
||||
|
Loading…
Reference in New Issue
Block a user