From d620dcdd085ddca34f990588aae1c314917a5d32 Mon Sep 17 00:00:00 2001 From: Lukas Pioch Date: Wed, 16 Dec 2015 19:31:57 +0100 Subject: Moved variables into scope, removed unused variables and fixed variables --- src/Protocol/MojangAPI.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Protocol/MojangAPI.cpp') diff --git a/src/Protocol/MojangAPI.cpp b/src/Protocol/MojangAPI.cpp index 73b3bd8c0..9eb8122d3 100644 --- a/src/Protocol/MojangAPI.cpp +++ b/src/Protocol/MojangAPI.cpp @@ -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)) { -- cgit v1.2.3