netsniff-ng: nlmsg: Explicitly cast RTA_LEN to an int
commit240bb31fc01efd6d059afcd9884b29f6814be789
authorTobias Klauser <tklauser@distanz.ch>
Wed, 11 Nov 2015 08:39:21 +0000 (11 09:39 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Wed, 11 Nov 2015 08:46:50 +0000 (11 09:46 +0100)
treeca2760dbf61d78ef4f74dd9b5cd1c0cb8c9b4e78
parent5c94119f5e03d5eb33b5b9717a4afa63522919ae
netsniff-ng: nlmsg: Explicitly cast RTA_LEN to an int

It looks like the result of RTA_PAYLOAD() can be of different type
depending on architecture/kernel header version/...

In order to prevent warnings related to non-matching types, just
explicitly cast RTA_LEN to an int, since it can't possible be larger
than the unsigned short of rta_len anyhow and it is used as an in in the
call to device_addr2str().

Fixes: 664dcf4217 ("netsniff-ng: nlmsg: Use correct pritnf format specifier for int")
Reported-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
proto_nlmsg.c