X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fmain.cpp;h=38b3ac5f839a3ad79e5896cf97afe566cb048080;hb=fe27b2dfe4551bc841b4edb833f13c7f72095faa;hp=1668679134e0f6fbdcefb0e19111dc345150cbf8;hpb=866895525a0bf940795f827629727d2b2320260b;p=novacoin.git diff --git a/src/main.cpp b/src/main.cpp index 1668679..38b3ac5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2723,7 +2723,7 @@ static unsigned int nCurrentBlockFile = 1; FILE* AppendBlockFile(unsigned int& nFileRet) { nFileRet = 0; - while (true) + for ( ; ; ) { FILE* file = OpenBlockFile(nCurrentBlockFile, 0, "ab"); if (!file) @@ -3808,7 +3808,7 @@ bool ProcessMessages(CNode* pfrom) // (x) data // - while (true) + for ( ; ; ) { // Don't bother if send buffer is too full to respond anyway if (pfrom->vSend.size() >= SendBufferSize())