diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2017-01-16 14:21:35 (GMT) |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2017-01-20 08:38:11 (GMT) |
commit | 4deb2ac2cb3637465c340d124eb4044435c4235c (patch) | |
tree | e2fb9f4b747d37119a4b5b45207be2e05a5ea09c /lib | |
parent | 976f6690fe97ef11313997de672b9bfa68a9bab7 (diff) | |
download | libnl-4deb2ac2cb3637465c340d124eb4044435c4235c.zip libnl-4deb2ac2cb3637465c340d124eb4044435c4235c.tar.gz libnl-4deb2ac2cb3637465c340d124eb4044435c4235c.tar.bz2 |
link/ipgre: Add prototype for ABI-preserving wrapper rtnl_link_get_pmtudisc()
Avoid a GCC -Wmissing-prototypes warning by explicitely adding a
prototype for the ABI-preserving wrapper added in commit 8d04ebf55400
("lib/route: preserve old ABI for rtnl_link_get_pmtudisc()") and add an
explanatory comment.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/route/link/ipgre.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/route/link/ipgre.c b/lib/route/link/ipgre.c index 714590f..6551323 100644 --- a/lib/route/link/ipgre.c +++ b/lib/route/link/ipgre.c @@ -818,6 +818,10 @@ uint8_t rtnl_link_ipgre_get_pmtudisc(struct rtnl_link *link) return ipgre->pmtudisc; } +/* Function prototype for ABI-preserving wrapper (not in public header) to avoid + * GCC warning about missing prototype. */ +uint8_t rtnl_link_get_pmtudisc(struct rtnl_link *link); + uint8_t rtnl_link_get_pmtudisc(struct rtnl_link *link) { /* rtnl_link_ipgre_get_pmtudisc() was wrongly named. Keep this |