diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2017-01-16 15:38:58 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2017-01-20 09:38:11 +0100 |
commit | e93745861713802a59c5c337a6b769e160932079 (patch) | |
tree | 768a34a89a41891e26615240911173da5ad89213 /lib/xfrm | |
parent | 441a0dbc0252a5788efbdf0f84ab8a7fbca886b1 (diff) | |
download | libnl-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.c | 3 |
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; |