diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2012-04-17 10:55:56 -0700 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2012-04-17 10:55:56 -0700 |
commit | b97d54355e8239273b50c54dbedfde16ed82fd73 (patch) | |
tree | 7c605817ec5a41b86b5656916eaa014e13fb247f /src/netbase.h | |
parent | e873dc654c81810272e71af8b52a3836d2c8bf0a (diff) | |
parent | 9fb89c26f3a3991d197b207f44ef79b1d16c26fc (diff) |
Merge pull request #1106 from jgarzik/sign-compare
Fix many sign-comparison warnings found in bitcoin codebase
Diffstat (limited to 'src/netbase.h')
-rw-r--r-- | src/netbase.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/netbase.h b/src/netbase.h index 9e79de4253..6a257cf9fa 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -134,10 +134,10 @@ class CService : public CNetAddr ) }; -bool LookupHost(const char *pszName, std::vector<CNetAddr>& vIP, int nMaxSolutions = 0, bool fAllowLookup = true); -bool LookupHostNumeric(const char *pszName, std::vector<CNetAddr>& vIP, int nMaxSolutions = 0); +bool LookupHost(const char *pszName, std::vector<CNetAddr>& vIP, unsigned int nMaxSolutions = 0, bool fAllowLookup = true); +bool LookupHostNumeric(const char *pszName, std::vector<CNetAddr>& vIP, unsigned int nMaxSolutions = 0); bool Lookup(const char *pszName, CService& addr, int portDefault = 0, bool fAllowLookup = true); -bool Lookup(const char *pszName, std::vector<CService>& vAddr, int portDefault = 0, bool fAllowLookup = true, int nMaxSolutions = 0); +bool Lookup(const char *pszName, std::vector<CService>& vAddr, int portDefault = 0, bool fAllowLookup = true, unsigned int nMaxSolutions = 0); bool LookupNumeric(const char *pszName, CService& addr, int portDefault = 0); bool ConnectSocket(const CService &addr, SOCKET& hSocketRet, int nTimeout = nConnectTimeout); |