diff options
author | 2022-10-24 23:06:14 +0100 | |
---|---|---|
committer | 2022-10-25 20:52:39 +0100 | |
commit | c3964f68e251e3a80f952e2014b2b5dc738aff4c (patch) | |
tree | 34d96aa4018f0bf347803cace44b9a0ec0ddd0e5 /libs/binder/OS.h | |
parent | 77f3da77c9aa5d7bb504ee72da5a21314f28eb9e (diff) |
Fix return types of sendMessageOnSocket/receiveMessageFromSocket
recvmsg() and sendmsg() return ssize_t but the wrapper functions
returned int. Fix the return type.
Bug: 250685929
Test: atest rpcBinderTest
Change-Id: Ia3f7f58e286f24a8711aed97d9bc2b3cf6b78f0d
Diffstat (limited to 'libs/binder/OS.h')
-rw-r--r-- | libs/binder/OS.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/binder/OS.h b/libs/binder/OS.h index 0d38968ade..fecae31763 100644 --- a/libs/binder/OS.h +++ b/libs/binder/OS.h @@ -33,11 +33,11 @@ status_t dupFileDescriptor(int oldFd, int* newFd); std::unique_ptr<RpcTransportCtxFactory> makeDefaultRpcTransportCtxFactory(); -int sendMessageOnSocket( +ssize_t sendMessageOnSocket( const RpcTransportFd& socket, iovec* iovs, int niovs, const std::vector<std::variant<base::unique_fd, base::borrowed_fd>>* ancillaryFds); -int receiveMessageFromSocket( +ssize_t receiveMessageFromSocket( const RpcTransportFd& socket, iovec* iovs, int niovs, std::vector<std::variant<base::unique_fd, base::borrowed_fd>>* ancillaryFds); |