Align the buffer to the alignment of the structure we expect.

Submitted by:	Slawa Olhovchenkov <slw zxy.spb.ru>
This commit is contained in:
Gleb Smirnoff 2020-03-05 21:01:47 +00:00
parent 2f7242ed33
commit 3f16af55b2

View File

@ -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;