summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-01-16 14:38:58 (GMT)
committerTobias Klauser <tklauser@distanz.ch>2017-01-20 08:38:11 (GMT)
commite93745861713802a59c5c337a6b769e160932079 (patch)
tree768a34a89a41891e26615240911173da5ad89213 /lib
parent441a0dbc0252a5788efbdf0f84ab8a7fbca886b1 (diff)
downloadlibnl-e93745861713802a59c5c337a6b769e160932079.zip
libnl-e93745861713802a59c5c337a6b769e160932079.tar.gz
libnl-e93745861713802a59c5c337a6b769e160932079.tar.bz2
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')
-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 21cfb2d..b0c31de 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;