diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2011-12-20 16:52:59 -0500 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2011-12-20 16:52:59 -0500 |
commit | 21d9f36781604e4ca9fc35dc65265593423b73e9 (patch) | |
tree | 223bf70418e43a0b9c8366c65db214780f77d61a /src/protocol.cpp | |
parent | 781c06c0f534913321a415a4fb64a60734e43101 (diff) |
Use standard C99 (and Qt) types for 64-bit integers
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r-- | src/protocol.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp index 27efb8f293..8e588652de 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -3,6 +3,8 @@ // Distributed under the MIT/X11 software license, see the accompanying // file license.txt or http://www.opensource.org/licenses/mit-license.php. +#include <stdint.h> + #include "protocol.h" #include "util.h" @@ -82,7 +84,7 @@ CAddress::CAddress() Init(); } -CAddress::CAddress(unsigned int ipIn, unsigned short portIn, uint64 nServicesIn) +CAddress::CAddress(unsigned int ipIn, unsigned short portIn, uint64_t nServicesIn) { Init(); ip = ipIn; @@ -90,7 +92,7 @@ CAddress::CAddress(unsigned int ipIn, unsigned short portIn, uint64 nServicesIn) nServices = nServicesIn; } -CAddress::CAddress(const struct sockaddr_in& sockaddr, uint64 nServicesIn) +CAddress::CAddress(const struct sockaddr_in& sockaddr, uint64_t nServicesIn) { Init(); ip = sockaddr.sin_addr.s_addr; @@ -98,25 +100,25 @@ CAddress::CAddress(const struct sockaddr_in& sockaddr, uint64 nServicesIn) nServices = nServicesIn; } -CAddress::CAddress(const char* pszIn, int portIn, bool fNameLookup, uint64 nServicesIn) +CAddress::CAddress(const char* pszIn, int portIn, bool fNameLookup, uint64_t nServicesIn) { Init(); Lookup(pszIn, *this, nServicesIn, fNameLookup, portIn); } -CAddress::CAddress(const char* pszIn, bool fNameLookup, uint64 nServicesIn) +CAddress::CAddress(const char* pszIn, bool fNameLookup, uint64_t nServicesIn) { Init(); Lookup(pszIn, *this, nServicesIn, fNameLookup, 0, true); } -CAddress::CAddress(std::string strIn, int portIn, bool fNameLookup, uint64 nServicesIn) +CAddress::CAddress(std::string strIn, int portIn, bool fNameLookup, uint64_t nServicesIn) { Init(); Lookup(strIn.c_str(), *this, nServicesIn, fNameLookup, portIn); } -CAddress::CAddress(std::string strIn, bool fNameLookup, uint64 nServicesIn) +CAddress::CAddress(std::string strIn, bool fNameLookup, uint64_t nServicesIn) { Init(); Lookup(strIn.c_str(), *this, nServicesIn, fNameLookup, 0, true); |