diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-01-27 16:50:00 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-01-27 16:50:00 +0100 |
commit | 04beb6dc3ca878aab48f283c1dc6699ca6a8a27b (patch) | |
tree | 0a20683c76645e69b7236355df634fdd32842766 /src/receive.c | |
parent | bb0235f7d8db0c0ea814118593da973609352089 (diff) | |
download | fastd-04beb6dc3ca878aab48f283c1dc6699ca6a8a27b.tar fastd-04beb6dc3ca878aab48f283c1dc6699ca6a8a27b.zip |
Add an aligned uint8_t type data_t and use it to ensure the alignment of various buffers on the stack
Diffstat (limited to 'src/receive.c')
-rw-r--r-- | src/receive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/receive.c b/src/receive.c index 42dbe5a..ecc4459 100644 --- a/src/receive.c +++ b/src/receive.c @@ -187,7 +187,7 @@ void fastd_receive(fastd_context_t *ctx, fastd_socket_t *sock) { fastd_peer_address_t local_addr; fastd_peer_address_t recvaddr; struct iovec buffer_vec = { .iov_base = buffer.data, .iov_len = buffer.len }; - char cbuf[1024]; + data_t cbuf[1024]; struct msghdr message = { .msg_name = &recvaddr, |