summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2016-06-06 21:56:24 -0500
committerElliott Hughes2016-06-06 21:59:45 -0500
commit5f4a946c096a4c3cabdc18f6f0a244baa17819cd (patch)
tree4e8ea2b262e02a0cf59bc33f795adb6331c5f141 /logd/LogListener.cpp
parent605628d325b003251155b5c5b425028106bf8f29 (diff)
downloadplatform-system-core-5f4a946c096a4c3cabdc18f6f0a244baa17819cd.tar.gz
platform-system-core-5f4a946c096a4c3cabdc18f6f0a244baa17819cd.tar.xz
platform-system-core-5f4a946c096a4c3cabdc18f6f0a244baa17819cd.zip
Use alignas for alignment.
Change-Id: I427c407a188682a360c74b2bd5a44dd62551ea66
Diffstat (limited to 'logd/LogListener.cpp')
-rw-r--r--logd/LogListener.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logd/LogListener.cpp b/logd/LogListener.cpp
index 39dd2272a..61b7fd830 100644
--- a/logd/LogListener.cpp
+++ b/logd/LogListener.cpp
@@ -48,7 +48,7 @@ bool LogListener::onDataAvailable(SocketClient *cli) {
48 + LOGGER_ENTRY_MAX_PAYLOAD]; 48 + LOGGER_ENTRY_MAX_PAYLOAD];
49 struct iovec iov = { buffer, sizeof(buffer) }; 49 struct iovec iov = { buffer, sizeof(buffer) };
50 50
51 char control[CMSG_SPACE(sizeof(struct ucred))] __aligned(4); 51 alignas(4) char control[CMSG_SPACE(sizeof(struct ucred))];
52 struct msghdr hdr = { 52 struct msghdr hdr = {
53 NULL, 53 NULL,
54 0, 54 0,