]> granicus.if.org Git - libnl/commit
lib: add type casting for nla_for_each_nested macro
authorPrzemyslaw Szczerbik <przemekszczerbik@gmail.com>
Thu, 25 Feb 2016 18:01:20 +0000 (19:01 +0100)
committerThomas Haller <thaller@redhat.com>
Thu, 25 Feb 2016 18:42:56 +0000 (19:42 +0100)
commitcdf2d4baf376e4a3030a2c1169516358b4fba2e5
treef5a244c957e0e71fa0c77a4333172ec4ac71f52b
parente03e9ff88a29265cd876750258824b3e08351848
lib: add type casting for nla_for_each_nested macro

g++ is unable to compile code with nla_for_each_nested macro due to
implicit type conversion from void* to nlattr*. This patch adds type
casting for nla_for_each_nested macro to address this issue.

Signed-off-by: Przemyslaw Szczerbik <przemek.szczerbik@gmail.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
http://lists.infradead.org/pipermail/libnl/2016-February/002095.html
include/netlink/attr.h