[systemd-devel] [PATCH] rtnl: fix for 32bits

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Mon Dec 16 21:46:06 PST 2013


On Tue, Dec 17, 2013 at 02:13:57PM +0900, Marc-Antoine Perennou wrote:
> Commit 0a0dc69b655cfb10cab39133f5d521e7b35ce3d5 broke tests for 32 bits
> ---
>  src/libsystemd-rtnl/rtnl-message.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/libsystemd-rtnl/rtnl-message.c b/src/libsystemd-rtnl/rtnl-message.c
> index 264cca0..c62eca9 100644
> --- a/src/libsystemd-rtnl/rtnl-message.c
> +++ b/src/libsystemd-rtnl/rtnl-message.c
> @@ -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);

Applied.

Zbyszek


More information about the systemd-devel mailing list