summaryrefslogtreecommitdiffstats
path: root/src/async.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-04-24 01:04:03 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-04-24 01:04:03 +0200
commitbaf9b2fd6096e5e8eee45b9f2feffa9adec6e927 (patch)
tree34ea64c29ff280ec7ffc90545f39c2ecf8aa6ff1 /src/async.c
parentd3eb3ac8887ea10811125e745bda77750f67fd25 (diff)
downloadfastd-baf9b2fd6096e5e8eee45b9f2feffa9adec6e927.tar
fastd-baf9b2fd6096e5e8eee45b9f2feffa9adec6e927.zip
Make async handle buffer aligned
Diffstat (limited to 'src/async.c')
-rw-r--r--src/async.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/async.c b/src/async.c
index e1b3709..f5133f6 100644
--- a/src/async.c
+++ b/src/async.c
@@ -83,7 +83,7 @@ void fastd_async_handle(void) {
exit_errno("fastd_async_handle: recvmsg");
}
- uint8_t buf[header.len];
+ uint8_t buf[header.len] __attribute__((aligned(8)));
vec[1].iov_base = buf;
vec[1].iov_len = sizeof(buf);
msg.msg_iovlen = 2;