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/resolve.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/resolve.c')
-rw-r--r-- | src/resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve.c b/src/resolve.c index ff09094..9eec349 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -69,7 +69,7 @@ static void* resolve_peer(void *varg) { n_addr++; } - uint8_t retbuf[sizeof(fastd_resolve_return_t) + n_addr*sizeof(fastd_peer_address_t)]; + data_t retbuf[sizeof(fastd_resolve_return_t) + n_addr*sizeof(fastd_peer_address_t)]; fastd_resolve_return_t *ret = (fastd_resolve_return_t*)retbuf; ret->remote = arg->remote; |