summaryrefslogtreecommitdiffstats
path: root/src/Protocol/MojangAPI.cpp
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2015-12-17 11:37:20 +0100
committerLukas Pioch <lukas@zgow.de>2015-12-17 11:37:20 +0100
commit1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb (patch)
treed589a1e5fb4813e100fd377bae9378c37a619370 /src/Protocol/MojangAPI.cpp
parentMerge pull request #2753 from cuberite/pathFix (diff)
parentMoved variables into scope, removed unused variables and fixed variables (diff)
downloadcuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar
cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.gz
cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.bz2
cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.lz
cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.xz
cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.zst
cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.zip
Diffstat (limited to 'src/Protocol/MojangAPI.cpp')
-rw-r--r--src/Protocol/MojangAPI.cpp3
1 files changed, 1 insertions, 2 deletions
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))
{