aboutsummaryrefslogtreecommitdiff
path: root/src/walletdb.cpp
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2013-07-31 03:35:33 -0700
committerJeff Garzik <[email protected]>2013-07-31 03:35:33 -0700
commit8351d55cd3955c95c5e3fe065a456db08cc8a559 (patch)
tree2647f444088b18845088a5fac3a6fdabe656eeba /src/walletdb.cpp
parentMake sure new wallet variables are initialized (diff)
parentRemove #define loop from util.h (diff)
downloaddiscoin-8351d55cd3955c95c5e3fe065a456db08cc8a559.tar.xz
discoin-8351d55cd3955c95c5e3fe065a456db08cc8a559.zip
Merge pull request #2866 from gavinandresen/loopdefine
Remove #define loop from util.h
Diffstat (limited to 'src/walletdb.cpp')
-rw-r--r--src/walletdb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/walletdb.cpp b/src/walletdb.cpp
index 7aad77976..014d8cbe2 100644
--- a/src/walletdb.cpp
+++ b/src/walletdb.cpp
@@ -73,7 +73,7 @@ void CWalletDB::ListAccountCreditDebit(const string& strAccount, list<CAccountin
if (!pcursor)
throw runtime_error("CWalletDB::ListAccountCreditDebit() : cannot create DB cursor");
unsigned int fFlags = DB_SET_RANGE;
- loop
+ while (true)
{
// Read next record
CDataStream ssKey(SER_DISK, CLIENT_VERSION);
@@ -437,7 +437,7 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet)
return DB_CORRUPT;
}
- loop
+ while (true)
{
// Read next record
CDataStream ssKey(SER_DISK, CLIENT_VERSION);