rtnl: fix for 32bits

Commit 0a0dc69b65 broke tests for 32 bits
This commit is contained in:
Marc-Antoine Perennou
2013-12-17 00:45:19 -05:00
committed by Zbigniew Jędrzejewski-Szmek
parent e7335f5491
commit b9eaf3d1eb
+1 -1
View File
@@ -601,7 +601,7 @@ int sd_rtnl_message_append_ether_addr(sd_rtnl_message *m, unsigned short type, c
return -ENOTSUP;
}
r = add_rtattr(m, type, data, sizeof(data));
r = add_rtattr(m, type, data, ETH_ALEN);
if (r < 0)
return r;