fix build warnings on linux.

Review URL: http://webrtc-codereview.appspot.com/99003

git-svn-id: http://webrtc.googlecode.com/svn/trunk@335 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
tommi@google.com 2011-08-09 13:40:24 +00:00
parent 579ee4d3f1
commit d15afa86c2
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@
#include "peerconnection/samples/server/peer_channel.h"
#include "peerconnection/samples/server/utils.h"
static const int kMaxConnections = (FD_SETSIZE - 2);
static const size_t kMaxConnections = (FD_SETSIZE - 2);
void HandleBrowserRequest(DataSocket* ds, bool* quit) {
assert(ds && ds->valid());

View File

@ -160,7 +160,7 @@ ChannelMember* PeerChannel::Lookup(DataSocket* ds) const {
static const char* kRequests[] = {
"/wait", "/sign_out", "/message",
};
int i = 0;
size_t i = 0;
for (; i < ARRAYSIZE(kRequests); ++i) {
if (ds->PathEquals(kRequests[i]))
break;
@ -228,7 +228,7 @@ bool PeerChannel::AddMember(DataSocket* ds) {
HandleDeliveryFailures(&failures);
members_.push_back(new_guy);
printf("New member added (total=%i): %s\n",
printf("New member added (total=%lu): %s\n",
members_.size(), new_guy->name().c_str());
// Let the newly connected peer know about other members of the channel.
@ -261,7 +261,7 @@ void PeerChannel::OnClosing(DataSocket* ds) {
break;
}
}
printf("Total connected: %i\n", members_.size());
printf("Total connected: %lu\n", members_.size());
}
void PeerChannel::CheckForTimeout() {