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:
parent
579ee4d3f1
commit
d15afa86c2
@ -19,7 +19,7 @@
|
|||||||
#include "peerconnection/samples/server/peer_channel.h"
|
#include "peerconnection/samples/server/peer_channel.h"
|
||||||
#include "peerconnection/samples/server/utils.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) {
|
void HandleBrowserRequest(DataSocket* ds, bool* quit) {
|
||||||
assert(ds && ds->valid());
|
assert(ds && ds->valid());
|
||||||
|
@ -160,7 +160,7 @@ ChannelMember* PeerChannel::Lookup(DataSocket* ds) const {
|
|||||||
static const char* kRequests[] = {
|
static const char* kRequests[] = {
|
||||||
"/wait", "/sign_out", "/message",
|
"/wait", "/sign_out", "/message",
|
||||||
};
|
};
|
||||||
int i = 0;
|
size_t i = 0;
|
||||||
for (; i < ARRAYSIZE(kRequests); ++i) {
|
for (; i < ARRAYSIZE(kRequests); ++i) {
|
||||||
if (ds->PathEquals(kRequests[i]))
|
if (ds->PathEquals(kRequests[i]))
|
||||||
break;
|
break;
|
||||||
@ -228,7 +228,7 @@ bool PeerChannel::AddMember(DataSocket* ds) {
|
|||||||
HandleDeliveryFailures(&failures);
|
HandleDeliveryFailures(&failures);
|
||||||
members_.push_back(new_guy);
|
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());
|
members_.size(), new_guy->name().c_str());
|
||||||
|
|
||||||
// Let the newly connected peer know about other members of the channel.
|
// Let the newly connected peer know about other members of the channel.
|
||||||
@ -261,7 +261,7 @@ void PeerChannel::OnClosing(DataSocket* ds) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
printf("Total connected: %i\n", members_.size());
|
printf("Total connected: %lu\n", members_.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
void PeerChannel::CheckForTimeout() {
|
void PeerChannel::CheckForTimeout() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user