From 8f19138b9543983a3292d6de9659674709e26d00 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Sat, 23 Oct 2010 14:09:37 +0200
Subject: Fixed compilation warnings.


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;
-- 
cgit v0.10.2-6-g49f6