]> granicus.if.org Git - libnl/commitdiff
link/ipip: Add missing prototype for rtnl_link_is_ipip()
authorTobias Klauser <tklauser@distanz.ch>
Mon, 16 Jan 2017 13:54:49 +0000 (14:54 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 20 Jan 2017 08:38:10 +0000 (09:38 +0100)
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>
include/netlink/route/link/ipip.h

index ccadb8740395388a10f4b5e3eeded70adcbc1610..a7f51583533aa5a9df63492acd3139ca1f22dd5a 100644 (file)
 #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);