1
0

Moved variables into scope, removed unused variables and fixed variables

This commit is contained in:
Lukas Pioch
2015-12-16 19:31:57 +01:00
parent 3c1f9e8a3a
commit d620dcdd08
9 changed files with 10 additions and 19 deletions

View File

@@ -429,12 +429,11 @@ bool cMojangAPI::SecureRequest(const AString & a_ServerName, const AString & a_R
}
// Read the HTTP response:
int ret;
unsigned char buf[1024];
for (;;)
{
ret = Socket.Receive(buf, sizeof(buf));
int ret = Socket.Receive(buf, sizeof(buf));
if ((ret == POLARSSL_ERR_NET_WANT_READ) || (ret == POLARSSL_ERR_NET_WANT_WRITE))
{