X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fntp.h;h=464b3edced9af33c2131660788f40dca3915ff43;hb=0a18ce8f4cd1a723f50333945d94c84b45c8d56b;hp=6ec9191f973449bc242562ad51a0b0f6d96e0c94;hpb=b60dd5749ca05390bceaf3256efc2a036a91f2e8;p=novacoin.git diff --git a/src/ntp.h b/src/ntp.h index 6ec9191..464b3ed 100644 --- a/src/ntp.h +++ b/src/ntp.h @@ -1,8 +1,14 @@ +// Copyright (c) 2013-2016 The NovaCoin developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or https://opensource.org/licenses/mit-license.php +#ifndef NOVACOIN_NTP_H +#define NOVACOIN_NTP_H + // Get time from random server and return server address. int64_t NtpGetTime(CNetAddr& ip); // Get time from provided server. -int64_t NtpGetTime(std::string &strHostName); +int64_t NtpGetTime(const std::string &strHostName); extern std::string strTrustedUpstream; @@ -11,3 +17,5 @@ void ThreadNtpSamples(void* parg); // NTP offset int64_t GetNtpOffset(); + +#endif // NOVACOIN_NTP_H