[PATCH 2/2] tests: check decoding of rtmsg netlink attributes

Dmitry V. Levin ldv at altlinux.org
Wed Aug 23 01:36:04 UTC 2017


On Wed, Aug 23, 2017 at 08:45:19AM +0800, JingPiao Chen wrote:
> * tests/nlattr_rtmsg.c (LWTUNNEL_ENCAP_NONE,
> RTA_ENCAP_TYPE): New macros.
> (main): Check decoding of RTA_DST, RTA_OIF, RTA_METRICS,
> RTA_MULTIPATH, RTA_CACHEINFO, RTA_MFC_STATS,
> RTA_VIA and RTA_ENCAP_TYPE.
[...]
> +	static struct nlattr nla = {
> +		.nla_type = RTAX_LOCK,
> +		.nla_len = sizeof(nla)
> +	};

No need for "static" here since there is no "const".


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170823/05a8b82e/attachment.bin>


More information about the Strace-devel mailing list