| Index: webrtc/examples/peerconnection/server/main.cc
|
| diff --git a/webrtc/examples/peerconnection/server/main.cc b/webrtc/examples/peerconnection/server/main.cc
|
| index 44f42a659534f31644bd756753108bd52fa26949..437566262fc2d86a19acd608de8fda5ef6f40359 100644
|
| --- a/webrtc/examples/peerconnection/server/main.cc
|
| +++ b/webrtc/examples/peerconnection/server/main.cc
|
| @@ -61,7 +61,7 @@ int main(int argc, char** argv) {
|
| return 0;
|
| }
|
|
|
| - int port = strtol((parser.GetFlag("port")).c_str(), NULL, 10);
|
| + int port = strtol((parser.GetFlag("port")).c_str(), nullptr, 10);
|
|
|
| // Abort if the user specifies a port that is outside the allowed
|
| // range [1, 65535].
|
| @@ -95,7 +95,8 @@ int main(int argc, char** argv) {
|
| FD_SET((*i)->socket(), &socket_set);
|
|
|
| struct timeval timeout = { 10, 0 };
|
| - if (select(FD_SETSIZE, &socket_set, NULL, NULL, &timeout) == SOCKET_ERROR) {
|
| + if (select(FD_SETSIZE, &socket_set, nullptr, nullptr, &timeout) ==
|
| + SOCKET_ERROR) {
|
| printf("select failed\n");
|
| break;
|
| }
|
|
|