summaryrefslogtreecommitdiffstats
path: root/runtime/jdwp
diff options
context:
space:
mode:
authorBrian Carlstrom <bdc@google.com>2013-07-19 11:24:48 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-07-19 11:24:48 -0700
commitac43ae545ffca66aac813ed3e6ab54e3559b5e4e (patch)
tree39fa904ac9ef3086d0b68d39c171e4927eb29070 /runtime/jdwp
parentf1694e19322ba9a147b25347fe003482a5d4930d (diff)
parent2d88862f0752a7a0e65145b088f49dabd49d4284 (diff)
downloadart-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.cc4
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];
}
/*