From ab263902874b89ff1d32d0cd34dc9e5d61ada795 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Wed, 24 Feb 2016 02:51:09 +0000 Subject: [PATCH] alpha: fix SOCK_DIAG_BY_FAMILY tests This complements commit v4.9-368-g301c65c. * tests/netlink_inet_diag.c (check_responses): Align "buf" on sizeof(long) boundary. * tests/netlink_unix_diag.c (check_responses): Likewise. --- tests/netlink_inet_diag.c | 2 +- tests/netlink_unix_diag.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/netlink_inet_diag.c b/tests/netlink_inet_diag.c index 3754d1bd..fa4c5c72 100644 --- a/tests/netlink_inet_diag.c +++ b/tests/netlink_inet_diag.c @@ -76,7 +76,7 @@ send_query(const int fd, const int family, const int proto) static void check_responses(const int fd) { - static char buf[8192]; + static long buf[8192 / sizeof(long)]; struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK }; diff --git a/tests/netlink_unix_diag.c b/tests/netlink_unix_diag.c index 5d760a25..0879bf0e 100644 --- a/tests/netlink_unix_diag.c +++ b/tests/netlink_unix_diag.c @@ -83,7 +83,7 @@ send_query(const int fd) static void check_responses(const int fd) { - static char buf[8192]; + static long buf[8192 / sizeof(long)]; struct sockaddr_nl nladdr = { .nl_family = AF_NETLINK }; -- 2.40.0