diff options
author | Brian Carlstrom <bdc@google.com> | 2013-07-18 17:02:00 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2013-07-18 17:02:52 -0700 |
commit | 2d88862f0752a7a0e65145b088f49dabd49d4284 (patch) | |
tree | 3fac6bbd9a0ff3836f361e46579151c8a93420b6 /runtime/jdwp | |
parent | 751d4ed43e8118f145edf18db4d987daf7dabbae (diff) | |
download | art-2d88862f0752a7a0e65145b088f49dabd49d4284.zip art-2d88862f0752a7a0e65145b088f49dabd49d4284.tar.gz art-2d88862f0752a7a0e65145b088f49dabd49d4284.tar.bz2 |
Fixing cpplint readability/casting issues
Change-Id: I6821da0e23737995a9b884a04e9b63fac640cd05
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]; } /* |