Commit 7dff71fd authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[IPV6] use appropriate __alignof__() for mibs.

parent 77882f74
...@@ -671,10 +671,10 @@ static int __init init_ipv6_mibs(void) ...@@ -671,10 +671,10 @@ static int __init init_ipv6_mibs(void)
__alignof__(struct ipv6_mib)) < 0) __alignof__(struct ipv6_mib)) < 0)
goto err_ip_mib; goto err_ip_mib;
if (snmp6_mib_init((void **)icmpv6_statistics, sizeof (struct icmpv6_mib), if (snmp6_mib_init((void **)icmpv6_statistics, sizeof (struct icmpv6_mib),
__alignof__(struct ipv6_mib)) < 0) __alignof__(struct icmpv6_mib)) < 0)
goto err_icmp_mib; goto err_icmp_mib;
if (snmp6_mib_init((void **)udp_stats_in6, sizeof (struct udp_mib), if (snmp6_mib_init((void **)udp_stats_in6, sizeof (struct udp_mib),
__alignof__(struct ipv6_mib)) < 0) __alignof__(struct udp_mib)) < 0)
goto err_udp_mib; goto err_udp_mib;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment