aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2012-04-15 16:58:32 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-04-15 16:58:32 -0400
commit3a78f82a783af22b82646365acc56d297a33e2b5 (patch)
treed4cbae3066154e7ca03338d1be92d24a05bd2382 /src/netbase.h
parentc376ac359ec8551823b4ee14c85d85a49f2d3436 (diff)
Fix sign-compare warnings: netbase's Lookup* max-solutions may be unsigned
Diffstat (limited to 'src/netbase.h')
-rw-r--r--src/netbase.h6
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);