]> granicus.if.org Git - libnl/commitdiff
qdisc/red: Add missing prototypes for rtnl_red_set_limit() and rtnl_red_get_limit()
authorTobias Klauser <tklauser@distanz.ch>
Mon, 16 Jan 2017 13:35:36 +0000 (14:35 +0100)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 20 Jan 2017 08:38:10 +0000 (09:38 +0100)
This fixes the following GCC warnings when compiling with
-Wmissing-prototypes:

  route/qdisc/red.c:136:6: warning: no previous prototype for ‘rtnl_red_set_limit’ [-Wmissing-prototypes]
  route/qdisc/red.c:152:5: warning: no previous prototype for ‘rtnl_red_get_limit’ [-Wmissing-prototypes]

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
include/netlink/route/qdisc/red.h

index a4e8642fd8e046d1c16ed2759760d06e44c299b2..accb8d9450c08c1addcb1505c3f9deaf3eea90a0 100644 (file)
@@ -14,4 +14,7 @@
 
 #include <netlink/netlink.h>
 
+extern  void rtnl_red_set_limit(struct rtnl_qdisc *qdisc, int limit);
+extern int rtnl_red_get_limit(struct rtnl_qdisc *qdisc);
+
 #endif