diff options
| author | 2022-08-03 22:47:22 +0000 | |
|---|---|---|
| committer | 2022-08-03 22:47:22 +0000 | |
| commit | 2300724f7a808208dde93fb0a5d1f9b7b36de925 (patch) | |
| tree | b1a6e9df38e3118e6b01c5f28f68ce926d964f06 /libs | |
| parent | 03775793232b7c931df7713815cdab2894231e52 (diff) | |
| parent | dcbef393927fe9a193606f41636124e6c8b0821c (diff) | |
Merge "libbinder: fix type of return value from {send,read}_msg" am: 2a2071242b am: dcbef39392
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2173482
Change-Id: Ib59422abbf83bda726f392ff3373b4ba50598e18
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/binder/trusty/RpcTransportTipcTrusty.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/binder/trusty/RpcTransportTipcTrusty.cpp b/libs/binder/trusty/RpcTransportTipcTrusty.cpp index e0d80fbe7b..dc27eb929c 100644 --- a/libs/binder/trusty/RpcTransportTipcTrusty.cpp +++ b/libs/binder/trusty/RpcTransportTipcTrusty.cpp @@ -64,7 +64,7 @@ public: .num_handles = 0, // TODO: add ancillaryFds .handles = nullptr, }; - int rc = send_msg(mSocket.get(), &msg); + ssize_t rc = send_msg(mSocket.get(), &msg); if (rc == ERR_NOT_ENOUGH_BUFFER) { // Peer is blocked, wait until it unblocks. // TODO: when tipc supports a send-unblocked handler, @@ -89,7 +89,7 @@ public: return statusFromTrusty(rc); } LOG_ALWAYS_FATAL_IF(static_cast<size_t>(rc) != size, - "Sent the wrong number of bytes %d!=%zu", rc, size); + "Sent the wrong number of bytes %zd!=%zu", rc, size); return OK; } @@ -129,7 +129,7 @@ public: .num_handles = 0, // TODO: support ancillaryFds .handles = nullptr, }; - int rc = read_msg(mSocket.get(), mMessageInfo.id, mMessageOffset, &msg); + ssize_t rc = read_msg(mSocket.get(), mMessageInfo.id, mMessageOffset, &msg); if (rc < 0) { return statusFromTrusty(rc); } |