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
9258693539
commit
195b907005
@ -514,7 +514,7 @@ sec_num_to_name(int flavor)
|
||||
static time_t
|
||||
rtm_ifinfo_sleep(time_t sec)
|
||||
{
|
||||
char buf[2048];
|
||||
char buf[2048] __aligned(__alignof(struct if_msghdr));
|
||||
fd_set rfds;
|
||||
struct timeval tv, start;
|
||||
ssize_t nread;
|
||||
|
Loading…
Reference in New Issue
Block a user