From 228b7fb5f8cd97c3482c5de984bfe9028bca6fff Mon Sep 17 00:00:00 2001 From: Nick Bray Date: Tue, 26 Feb 2019 15:54:22 -0800 Subject: Refactor use of iovec struct. Use "struct iovec" instead of "iovec_t". Prefix field names with iov_ Bug: 110161494 Change-Id: I9e759de36b65ef8e3a1cd6a4d370e8b3d0d486e5 --- ipc/gatekeeper_ipc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipc') 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 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); -- cgit v1.2.3