summaryrefslogtreecommitdiff
path: root/lib/xfrm
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-01-16 15:38:58 +0100
committerTobias Klauser <tklauser@distanz.ch>2017-01-20 09:38:11 +0100
commite93745861713802a59c5c337a6b769e160932079 (patch)
tree768a34a89a41891e26615240911173da5ad89213 /lib/xfrm
parent441a0dbc0252a5788efbdf0f84ab8a7fbca886b1 (diff)
downloadlibnl-e93745861713802a59c5c337a6b769e160932079.tar.gz
xfrm/template: 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_user_tmpl_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/xfrm')
-rw-r--r--lib/xfrm/template.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/xfrm/template.c b/lib/xfrm/template.c
index 21cfb2de..b0c31de8 100644
--- a/lib/xfrm/template.c
+++ b/lib/xfrm/template.c
@@ -46,6 +46,7 @@
* ~~~~
*/
+#include <netlink/xfrm/template.h>
#include <netlink-private/netlink.h>
void xfrmnl_user_tmpl_free(struct xfrmnl_user_tmpl* utmpl)
@@ -229,7 +230,7 @@ int xfrmnl_user_tmpl_get_family(struct xfrmnl_user_tmpl *utmpl)
return utmpl->family;
}
-int xfrmnl_user_tmpl_set_family(struct xfrmnl_user_tmpl *utmpl, int family)
+int xfrmnl_user_tmpl_set_family(struct xfrmnl_user_tmpl *utmpl, unsigned int family)
{
utmpl->family = family;