]> granicus.if.org Git - libnl/commitdiff
xfrm/sa: Include own public header for function prototypes
authorTobias Klauser <tklauser@distanz.ch>
Tue, 17 Jan 2017 07:26:02 +0000 (08:26 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 20 Jan 2017 08:38:11 +0000 (09:38 +0100)
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 function prototype of xfrmnl_sa_get_sec_ctx() to
match the definition.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
include/netlink/xfrm/sa.h
lib/xfrm/sa.c

index 9209ab098589fd62d9ec2f27c3e0db168f53456b..7362c36120ac359852f1251f92de61fec12424f0 100644 (file)
@@ -141,8 +141,8 @@ extern int                      xfrmnl_sa_set_coaddr (struct xfrmnl_sa*, struct
 extern int                      xfrmnl_sa_get_mark (struct xfrmnl_sa*, unsigned int*, unsigned int*);
 extern int                      xfrmnl_sa_set_mark (struct xfrmnl_sa*, unsigned int, unsigned int);
 
-extern int                      xfrmnl_sa_get_sec_ctx (struct xfrmnl_sa*, unsigned int, unsigned int,
-                                                       unsigned int, unsigned int, char*);
+extern int                      xfrmnl_sa_get_sec_ctx (struct xfrmnl_sa*, unsigned int*, unsigned int*,
+                                                       unsigned int*, unsigned int*, char*);
 extern int                      xfrmnl_sa_set_sec_ctx (struct xfrmnl_sa*, unsigned int, unsigned int,
                                                        unsigned int, unsigned int, const char*);
 
index 5bd99522945c328c8d9d17beed2155d1d26121e7..00460da072ea9a6c8dc5facb776f13526a9ace3d 100644 (file)
@@ -42,6 +42,7 @@
 #include <netlink/netlink.h>
 #include <netlink/cache.h>
 #include <netlink/object.h>
+#include <netlink/xfrm/sa.h>
 #include <netlink/xfrm/selector.h>
 #include <netlink/xfrm/lifetime.h>
 #include <time.h>