summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarindam@chromium.org <arindam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 13:47:36 +0000
committerarindam@chromium.org <arindam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-26 13:47:36 +0000
commitc6a2eb748ba6dd1f570cbac0b806faae450274c7 (patch)
tree037a4cb78ef98d81edb7263ad88451b2fe756de2
parent5c100a2528534b15b78e0af059932c0250d704b3 (diff)
downloadchromium_src-c6a2eb748ba6dd1f570cbac0b806faae450274c7.zip
chromium_src-c6a2eb748ba6dd1f570cbac0b806faae450274c7.tar.gz
chromium_src-c6a2eb748ba6dd1f570cbac0b806faae450274c7.tar.bz2
Fixing compilation warnings for r19354
TEST=none BUG=none TBR=eroman Review URL: http://codereview.chromium.org/149074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19356 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--net/socket/socks_client_socket.cc2
-rw-r--r--net/socket/socks_client_socket.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/net/socket/socks_client_socket.cc b/net/socket/socks_client_socket.cc
index 0ccaeb6..ccedec0 100644
--- a/net/socket/socks_client_socket.cc
+++ b/net/socket/socks_client_socket.cc
@@ -299,7 +299,7 @@ int SOCKSClientSocket::DoHandshakeWriteComplete(int result) {
if (bytes_sent_ == buffer_.size()) {
next_state_ = STATE_HANDSHAKE_READ;
buffer_.clear();
- } else if (bytes_sent_ < buffer_.size()) {
+ } else if (bytes_sent_ < static_cast<int>(buffer_.size())) {
next_state_ = STATE_HANDSHAKE_WRITE;
} else {
return ERR_UNEXPECTED;
diff --git a/net/socket/socks_client_socket.h b/net/socket/socks_client_socket.h
index 295000a..53df119 100644
--- a/net/socket/socks_client_socket.h
+++ b/net/socket/socks_client_socket.h
@@ -116,8 +116,8 @@ class SOCKSClientSocket : public ClientSocket {
bool completed_handshake_;
// These contain the bytes sent / received by the SOCKS handshake.
- size_t bytes_sent_;
- size_t bytes_received_;
+ int bytes_sent_;
+ int bytes_received_;
// Used to resolve the hostname to which the SOCKS proxy will connect.
SingleRequestHostResolver resolver_;