diff options
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-08-20 16:55:14 +0000 |
---|---|---|
committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-08-20 16:55:14 +0000 |
commit | 2201a0808ea240617a66823f98dda3433d2546b0 (patch) | |
tree | 236085e71879b66b05bf3266a2b52f7322d104ff /util.h | |
parent | 05454818dc7ed92f577a1a1ef6798049f17a52e7 (diff) |
warning message if clock is too far off
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@141 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -143,6 +143,7 @@ extern char pszSetDataDir[MAX_PATH]; extern bool fShutdown;
extern bool fDaemon;
extern bool fCommandLine;
+extern string strWarning;
void RandAddSeed();
void RandAddSeedPerfmon();
@@ -298,6 +299,11 @@ inline int64 roundint64(double d) return (int64)(d > 0 ? d + 0.5 : d - 0.5);
}
+inline int64 abs64(int64 n)
+{
+ return (n >= 0 ? n : -n);
+}
+
template<typename T>
string HexStr(const T itbegin, const T itend, bool fSpaces=true)
{
|