Align the buffer to the alignment of the structure we expect.
Submitted by: Slawa Olhovchenkov <slw zxy.spb.ru>
This commit is contained in:
parent
2f7242ed33
commit
3f16af55b2
@ -514,7 +514,7 @@ sec_num_to_name(int flavor)
|
|||||||
static time_t
|
static time_t
|
||||||
rtm_ifinfo_sleep(time_t sec)
|
rtm_ifinfo_sleep(time_t sec)
|
||||||
{
|
{
|
||||||
char buf[2048];
|
char buf[2048] __aligned(__alignof(struct if_msghdr));
|
||||||
fd_set rfds;
|
fd_set rfds;
|
||||||
struct timeval tv, start;
|
struct timeval tv, start;
|
||||||
ssize_t nread;
|
ssize_t nread;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user