OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76ce8e5
)
recvfrom takes a non-const pointer.
author
Elliott Hughes
<enh@google.com>
Fri, 12 Aug 2016 17:53:48 +0000
(10:53 -0700)
committer
Elliott Hughes
<enh@google.com>
Fri, 12 Aug 2016 17:53:48 +0000
(10:53 -0700)
Change-Id: Ib2c8f2710cb333904106f849f492c83697fdd937
libs/common_time/common_time_server.cpp
patch
|
blob
|
history
diff --git
a/libs/common_time/common_time_server.cpp
b/libs/common_time/common_time_server.cpp
index
f72ffaa
..
b1495ef
100644
(file)
--- a/
libs/common_time/common_time_server.cpp
+++ b/
libs/common_time/common_time_server.cpp
@@
-615,12
+615,11
@@
bool CommonTimeServer::handlePacket() {
ssize_t recvBytes = recvfrom(
mSocket, buf, sizeof(buf), 0,
- reinterpret_cast<
const
sockaddr *>(&srcAddr), &srcAddrLen);
+ reinterpret_cast<sockaddr *>(&srcAddr), &srcAddrLen);
if (recvBytes < 0) {
- mBadPktLog.log(ANDROID_LOG_ERROR, LOG_TAG,
- "recvfrom failed (res %d, errno %d)",
- recvBytes, errno);
+ mBadPktLog.log(ANDROID_LOG_ERROR, LOG_TAG, "recvfrom failed (%s)",
+ strerror(errno));
return false;
}