summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-01-16 13:54:49 (GMT)
committerTobias Klauser <tklauser@distanz.ch>2017-01-20 08:38:10 (GMT)
commitcb66079de0411cb25c0de131567988e27dbd1617 (patch)
tree306c74f716d81fcb8dbc1b529e3ceec4a3031426
parent65e268d739336153e90b85a6b56ec2723ce1abab (diff)
downloadlibnl-cb66079de0411cb25c0de131567988e27dbd1617.zip
libnl-cb66079de0411cb25c0de131567988e27dbd1617.tar.gz
libnl-cb66079de0411cb25c0de131567988e27dbd1617.tar.bz2
link/ipip: Add missing prototype for rtnl_link_is_ipip()
Add the function prototype for rtnl_link_is_ipip() to the public header. This fixes the following GCC warning when compiling with -Wmissing-prototypes: route/link/ipip.c:296:5: warning: no previous prototype for ‘rtnl_link_is_ipip’ [-Wmissing-prototypes] Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--include/netlink/route/link/ipip.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/netlink/route/link/ipip.h b/include/netlink/route/link/ipip.h
index ccadb87..a7f5158 100644
--- a/include/netlink/route/link/ipip.h
+++ b/include/netlink/route/link/ipip.h
@@ -18,10 +18,11 @@
#ifdef __cplusplus
extern "C" {
#endif
-
extern struct rtnl_link *rtnl_link_ipip_alloc(void);
extern int rtnl_link_ipip_add(struct nl_sock *sk, const char *name);
+ extern int rtnl_link_is_ipip(struct rtnl_link *link);
+
extern uint32_t rtnl_link_ipip_get_link(struct rtnl_link *link);
extern int rtnl_link_ipip_set_link(struct rtnl_link *link, uint32_t index);