aboutsummaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-07-31 14:06:44 +1000
committerGavin Andresen <gavinandresen@gmail.com>2013-07-31 14:06:44 +1000
commit050d2e953f23db6d818b9cec6b7dc0e52aa7537c (patch)
tree2647f444088b18845088a5fac3a6fdabe656eeba /src/util.cpp
parentc4316fefa5f56d62eeceb710ee18313bd9be1128 (diff)
downloadbitcoin-050d2e953f23db6d818b9cec6b7dc0e52aa7537c.tar.xz
Remove #define loop from util.h
Replace the loop macro with while (true). The #define caused problems for Qt.
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util.cpp b/src/util.cpp
index bfb6d75838..c4212b3984 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -311,7 +311,7 @@ string vstrprintf(const char *format, va_list ap)
char* p = buffer;
int limit = sizeof(buffer);
int ret;
- loop
+ while (true)
{
va_list arg_ptr;
va_copy(arg_ptr, ap);
@@ -371,7 +371,7 @@ void ParseString(const string& str, char c, vector<string>& v)
return;
string::size_type i1 = 0;
string::size_type i2;
- loop
+ while (true)
{
i2 = str.find(c, i1);
if (i2 == str.npos)
@@ -487,7 +487,7 @@ vector<unsigned char> ParseHex(const char* psz)
{
// convert hex dump to vector
vector<unsigned char> vch;
- loop
+ while (true)
{
while (isspace(*psz))
psz++;
@@ -941,7 +941,7 @@ string DecodeBase32(const string& str)
bool WildcardMatch(const char* psz, const char* mask)
{
- loop
+ while (true)
{
switch (*mask)
{