]> granicus.if.org Git - strace/commitdiff
alpha: fix SOCK_DIAG_BY_FAMILY tests
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 24 Feb 2016 02:51:09 +0000 (02:51 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 15 Mar 2016 02:54:38 +0000 (02:54 +0000)
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
tests/netlink_unix_diag.c

index 3754d1bdc2296646eb1a745bd7d15337c90e0b35..fa4c5c721709f70d2a73e863a41f1fdd6c54e836 100644 (file)
@@ -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
        };
index 5d760a253757cbfae6333758cbf909439d6dd386..0879bf0ea7f87a57c7c2ec4c10cf62987f4ce429 100644 (file)
@@ -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
        };