diff options
author | Brian Carlstrom <bdc@google.com> | 2013-07-19 11:24:48 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-07-19 11:24:48 -0700 |
commit | ac43ae545ffca66aac813ed3e6ab54e3559b5e4e (patch) | |
tree | 39fa904ac9ef3086d0b68d39c171e4927eb29070 /runtime/jdwp | |
parent | f1694e19322ba9a147b25347fe003482a5d4930d (diff) | |
parent | 2d88862f0752a7a0e65145b088f49dabd49d4284 (diff) | |
download | art-ac43ae545ffca66aac813ed3e6ab54e3559b5e4e.zip art-ac43ae545ffca66aac813ed3e6ab54e3559b5e4e.tar.gz art-ac43ae545ffca66aac813ed3e6ab54e3559b5e4e.tar.bz2 |
am 2d88862f: Fixing cpplint readability/casting issues
* commit '2d88862f0752a7a0e65145b088f49dabd49d4284':
Fixing cpplint readability/casting issues
Diffstat (limited to 'runtime/jdwp')
-rw-r--r-- | runtime/jdwp/jdwp_adb.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/jdwp/jdwp_adb.cc b/runtime/jdwp/jdwp_adb.cc index 9b9fe4c..2bfe63e 100644 --- a/runtime/jdwp/jdwp_adb.cc +++ b/runtime/jdwp/jdwp_adb.cc @@ -157,7 +157,7 @@ int JdwpAdbState::ReceiveClientFd() { cmsg->cmsg_len = msg.msg_controllen; cmsg->cmsg_level = SOL_SOCKET; cmsg->cmsg_type = SCM_RIGHTS; - ((int*)(void*)CMSG_DATA(cmsg))[0] = -1; + (reinterpret_cast<int*>(CMSG_DATA(cmsg)))[0] = -1; int rc = TEMP_FAILURE_RETRY(recvmsg(control_sock_, &msg, 0)); @@ -170,7 +170,7 @@ int JdwpAdbState::ReceiveClientFd() { return -1; } - return ((int*)(void*)CMSG_DATA(cmsg))[0]; + return (reinterpret_cast<int*>(CMSG_DATA(cmsg)))[0]; } /* |