summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-01-17 07:27:20 (GMT)
committerTobias Klauser <tklauser@distanz.ch>2017-01-20 08:38:11 (GMT)
commit441a0dbc0252a5788efbdf0f84ab8a7fbca886b1 (patch)
tree2b67bc6f038846f50ca4feffe0e41ff1e8739eea /lib
parent160c5f0b9a3da7cc2b4b0faaee6482f2456ee3c2 (diff)
downloadlibnl-441a0dbc0252a5788efbdf0f84ab8a7fbca886b1.zip
libnl-441a0dbc0252a5788efbdf0f84ab8a7fbca886b1.tar.gz
libnl-441a0dbc0252a5788efbdf0f84ab8a7fbca886b1.tar.bz2
xfrm/selector: Include own public header for function prototypes
Include the own public header in order to get function prototypes for all public functions defined in this module. This fixes GCC -Wmissing-prototype warnings. Also adjust the implementation of xfrmnl_sel_set_family() to match the declaration (family parameter is unsigned int, not int). Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'lib')
-rw-r--r--lib/xfrm/selector.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/xfrm/selector.c b/lib/xfrm/selector.c
index f3bc737..b9a09c8 100644
--- a/lib/xfrm/selector.c
+++ b/lib/xfrm/selector.c
@@ -46,6 +46,7 @@
* ~~~~
*/
+#include <netlink/xfrm/selector.h>
#include <netlink-private/netlink.h>
static void sel_destroy(struct xfrmnl_sel* sel)
@@ -281,7 +282,7 @@ int xfrmnl_sel_get_family(struct xfrmnl_sel *sel)
return sel->family;
}
-int xfrmnl_sel_set_family(struct xfrmnl_sel *sel, int family)
+int xfrmnl_sel_set_family(struct xfrmnl_sel *sel, unsigned int family)
{
sel->family = family;