summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorNick Bray <ncbray@google.com>2019-02-26 15:54:22 -0800
committerNick Bray <ncbray@google.com>2019-02-26 15:54:22 -0800
commit228b7fb5f8cd97c3482c5de984bfe9028bca6fff (patch)
tree5609bf29fcb9f5b7756323fcdb9ff317c8a0ab86 /ipc
parentdf88fdaac77a54cf1674e90cc0c6b2d900f6f272 (diff)
downloadgatekeeper-228b7fb5f8cd97c3482c5de984bfe9028bca6fff.tar.gz
Refactor use of iovec struct.
Use "struct iovec" instead of "iovec_t". Prefix field names with iov_ Bug: 110161494 Change-Id: I9e759de36b65ef8e3a1cd6a4d370e8b3d0d486e5
Diffstat (limited to 'ipc')
-rw-r--r--ipc/gatekeeper_ipc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/gatekeeper_ipc.cpp b/ipc/gatekeeper_ipc.cpp
index 30bb6b2..6a14fe9 100644
--- a/ipc/gatekeeper_ipc.cpp
+++ b/ipc/gatekeeper_ipc.cpp
@@ -127,7 +127,7 @@ static gatekeeper_error_t send_response(handle_t chan,
uint8_t* out_buf,
uint32_t out_buf_size) {
struct gatekeeper_message gk_msg = {cmd | GK_RESP_BIT, {}};
- iovec_t iov[2] = {
+ struct iovec iov[2] = {
{&gk_msg, sizeof(gk_msg)},
{out_buf, out_buf_size},
};
@@ -182,7 +182,7 @@ static long handle_msg(handle_t chan) {
UniquePtr<uint8_t[]> msg_buf(new uint8_t[msg_inf.len]);
/* read msg content */
- iovec_t iov = {msg_buf.get(), msg_inf.len};
+ struct iovec iov = {msg_buf.get(), msg_inf.len};
ipc_msg_t msg = {1, &iov, 0, NULL};
rc = read_msg(chan, msg_inf.id, 0, &msg);