summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-01-17 07:21:56 (GMT)
committerTobias Klauser <tklauser@distanz.ch>2017-01-20 08:38:11 (GMT)
commit652aea2ba3293fc0acc029d0147424ca8867c070 (patch)
tree7e3259c697d0fe1484d8c3211c529d8570d15c94
parentdbc5f414b25645535adc3f6b31704a36edba308e (diff)
downloadlibnl-652aea2ba3293fc0acc029d0147424ca8867c070.zip
libnl-652aea2ba3293fc0acc029d0147424ca8867c070.tar.gz
libnl-652aea2ba3293fc0acc029d0147424ca8867c070.tar.bz2
idiag/req: Add missing function prototype
Add missing function prototype for idiagnl_req_parse() to the public header. This fixes the following GCC warning when compiling with -Wmissing-prototypes: idiag/idiag_req_obj.c:189:5: warning: no previous prototype for ‘idiagnl_req_parse’ [-Wmissing-prototypes] Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--include/netlink/idiag/req.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/netlink/idiag/req.h b/include/netlink/idiag/req.h
index 3c9f8ac..b63a4ce 100644
--- a/include/netlink/idiag/req.h
+++ b/include/netlink/idiag/req.h
@@ -43,6 +43,10 @@ extern int idiagnl_req_set_src(struct idiagnl_req *,
extern struct nl_addr * idiagnl_req_get_dst(const struct idiagnl_req *);
extern int idiagnl_req_set_dst(struct idiagnl_req *,
struct nl_addr *);
+
+extern int idiagnl_req_parse(struct nlmsghdr *nlh,
+ struct idiagnl_req **result);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */