summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-23 12:09:37 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-23 12:09:37 (GMT)
commit8f19138b9543983a3292d6de9659674709e26d00 (patch)
treeaa2be5578d4d4aec4d78b5fc8c70a811728a4c17 /Swiften
parent204242e4da194f2d7f87bfc95a950f8dcf9f481b (diff)
downloadswift-8f19138b9543983a3292d6de9659674709e26d00.zip
swift-8f19138b9543983a3292d6de9659674709e26d00.tar.bz2
Fixed compilation warnings.
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/FileTransfer/SOCKS5BytestreamServerSession.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/FileTransfer/SOCKS5BytestreamServerSession.cpp b/Swiften/FileTransfer/SOCKS5BytestreamServerSession.cpp
index d22845a..9951f7a 100644
--- a/Swiften/FileTransfer/SOCKS5BytestreamServerSession.cpp
+++ b/Swiften/FileTransfer/SOCKS5BytestreamServerSession.cpp
@@ -41,8 +41,8 @@ void SOCKS5BytestreamServerSession::handleDataRead(const ByteArray& data) {
void SOCKS5BytestreamServerSession::process() {
if (state == WaitingForAuthentication) {
if (unprocessedData.getSize() >= 2) {
- int authCount = unprocessedData[1];
- int i = 2;
+ size_t authCount = unprocessedData[1];
+ size_t i = 2;
while (i < 2 + authCount && i < unprocessedData.getSize()) {
// Skip authentication mechanism
++i;
@@ -61,8 +61,8 @@ void SOCKS5BytestreamServerSession::process() {
else if (state == WaitingForRequest) {
if (unprocessedData.getSize() >= 5) {
ByteArray requestID;
- int i = 5;
- int hostnameSize = unprocessedData[4];
+ size_t i = 5;
+ size_t hostnameSize = unprocessedData[4];
while (i < 5 + hostnameSize && i < unprocessedData.getSize()) {
requestID += unprocessedData[i];
++i;