]> granicus.if.org Git - libnl/commit
attr: fix compile warning in headers
authorPeter Wu <peter@lekensteyn.nl>
Tue, 24 Jun 2014 21:13:38 +0000 (23:13 +0200)
committerThomas Haller <thaller@redhat.com>
Wed, 25 Jun 2014 07:16:50 +0000 (09:16 +0200)
commita8b352a4c50b0e44d53c5a74388f942523224171
treeeb64b518726993ae3466c34a57bc9d5e0def2bdc
parent8e052f59f431844ff6576dcf7b47293ab4ef45aa
attr: fix compile warning in headers

strlen() returns a size_t type, but nla_put accepts an int only. This
breaks a -Werror build of applications using libnl, so avoid this
warning by explicitly casting the length to an int.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Signed-off-by: Thomas Haller <thaller@redhat.com>
include/netlink/attr.h