diff options
author | Brian Carlstrom <bdc@google.com> | 2013-07-18 18:04:08 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-07-18 18:10:42 -0700 |
commit | 4274889d48ef82369bf2c1ca70d84689b4f9e93a (patch) | |
tree | 9cc958f16e27ef3d6f50978c1024f79d7a56a725 /runtime/jdwp | |
parent | 2d88862f0752a7a0e65145b088f49dabd49d4284 (diff) | |
download | art-4274889d48ef82369bf2c1ca70d84689b4f9e93a.zip art-4274889d48ef82369bf2c1ca70d84689b4f9e93a.tar.gz art-4274889d48ef82369bf2c1ca70d84689b4f9e93a.tar.bz2 |
Fixing cpplint readability/check issues
Change-Id: Ia81db7238b4a13ff2e585aaac9d5e3e91df1e3e0
Diffstat (limited to 'runtime/jdwp')
-rw-r--r-- | runtime/jdwp/jdwp_adb.cc | 4 | ||||
-rw-r--r-- | runtime/jdwp/jdwp_socket.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/runtime/jdwp/jdwp_adb.cc b/runtime/jdwp/jdwp_adb.cc index 2bfe63e..cbf35be 100644 --- a/runtime/jdwp/jdwp_adb.cc +++ b/runtime/jdwp/jdwp_adb.cc @@ -297,7 +297,7 @@ bool JdwpAdbState::Accept() { bool JdwpAdbState::ProcessIncoming() { int readCount; - CHECK(clientSock != -1); + CHECK_NE(clientSock, -1); if (!HaveFullPacket()) { /* read some more, looping until we have data */ @@ -371,7 +371,7 @@ bool JdwpAdbState::ProcessIncoming() { LOG(INFO) << "Ignoring second debugger -- accepting and dropping"; close(sock); } else { - CHECK(control_sock_ == -1); + CHECK_EQ(control_sock_, -1); /* * Remote side most likely went away, so our next read * on clientSock will fail and throw us out of the loop. diff --git a/runtime/jdwp/jdwp_socket.cc b/runtime/jdwp/jdwp_socket.cc index 87706a4..3f5546e 100644 --- a/runtime/jdwp/jdwp_socket.cc +++ b/runtime/jdwp/jdwp_socket.cc @@ -218,7 +218,7 @@ bool JdwpSocketState::Accept() { return false; /* you're not listening! */ } - CHECK(clientSock == -1); /* must not already be talking */ + CHECK_EQ(clientSock, -1); /* must not already be talking */ addrlen = sizeof(addr); do { @@ -348,7 +348,7 @@ bool JdwpSocketState::Establish(const JdwpOptions* options) { bool JdwpSocketState::ProcessIncoming() { int readCount; - CHECK(clientSock != -1); + CHECK_NE(clientSock, -1); if (!HaveFullPacket()) { /* read some more, looping until we have data */ |