summaryrefslogtreecommitdiff
path: root/libs/binder/OS.cpp
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2022-10-25 21:27:00 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-10-25 21:27:00 +0000
commitb1815e3c3926b15d25880793973f448a2384caa8 (patch)
tree34d96aa4018f0bf347803cace44b9a0ec0ddd0e5 /libs/binder/OS.cpp
parent77f3da77c9aa5d7bb504ee72da5a21314f28eb9e (diff)
parentc3964f68e251e3a80f952e2014b2b5dc738aff4c (diff)
Merge "Fix return types of sendMessageOnSocket/receiveMessageFromSocket"
Diffstat (limited to 'libs/binder/OS.cpp')
-rw-r--r--libs/binder/OS.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/binder/OS.cpp b/libs/binder/OS.cpp
index 77e401f83e..ce60e33ba7 100644
--- a/libs/binder/OS.cpp
+++ b/libs/binder/OS.cpp
@@ -67,7 +67,7 @@ std::unique_ptr<RpcTransportCtxFactory> makeDefaultRpcTransportCtxFactory() {
return RpcTransportCtxFactoryRaw::make();
}
-int sendMessageOnSocket(
+ssize_t sendMessageOnSocket(
const RpcTransportFd& socket, iovec* iovs, int niovs,
const std::vector<std::variant<base::unique_fd, base::borrowed_fd>>* ancillaryFds) {
if (ancillaryFds != nullptr && !ancillaryFds->empty()) {
@@ -112,7 +112,7 @@ int sendMessageOnSocket(
return TEMP_FAILURE_RETRY(sendmsg(socket.fd.get(), &msg, MSG_NOSIGNAL));
}
-int receiveMessageFromSocket(
+ssize_t receiveMessageFromSocket(
const RpcTransportFd& socket, iovec* iovs, int niovs,
std::vector<std::variant<base::unique_fd, base::borrowed_fd>>* ancillaryFds) {
if (ancillaryFds != nullptr) {