X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fntp.cpp;h=64fd46c90b3a5df1deabc985b75edea858efbff4;hb=f79bcc13aa6696a20bf7d9082f7bdc34a24da3d2;hp=527a02c36bad8b0ad9c4ae4b11fd56f2c64e93e4;hpb=46114a02f269225895856f24fd51a0c8780e2bc5;p=novacoin.git diff --git a/src/ntp.cpp b/src/ntp.cpp index 527a02c..64fd46c 100644 --- a/src/ntp.cpp +++ b/src/ntp.cpp @@ -411,7 +411,7 @@ int64_t NtpGetTime(CNetAddr& ip) { ip = CNetAddr(((sockaddr_in *)&cliaddr)->sin_addr); int64_t nTime = DoReq(sockfd, servlen, cliaddr); - closesocket(sockfd); + CloseSocket(sockfd); return nTime; } @@ -428,7 +428,7 @@ int64_t NtpGetTime(const std::string &strHostName) int64_t nTime = DoReq(sockfd, servlen, cliaddr); - closesocket(sockfd); + CloseSocket(sockfd); return nTime; } @@ -445,7 +445,7 @@ int64_t GetNtpOffset() { } void ThreadNtpSamples(void* parg) { - const int64_t nMaxOffset = 86400; // Not a real limit, just sanity threshold. + const int64_t nMaxOffset = nOneDay; // Not a real limit, just sanity threshold. printf("Trying to find NTP server at localhost...\n");