From: Pablo Neira Ayuso Date: Tue, 24 Apr 2018 14:42:42 +0000 (+0200) Subject: iptables-compat: statify nft_restart() X-Git-Tag: v1.8.0~106 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a37d1407e4446e7e84ec038bf4d2d3dac9f2138;p=thirdparty%2Fiptables.git iptables-compat: statify nft_restart() This function is only used from iptables/nft.c. Signed-off-by: Pablo Neira Ayuso --- diff --git a/iptables/nft.c b/iptables/nft.c index ffc9e95e..2610de44 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -762,7 +762,7 @@ err: return ret; } -int nft_restart(struct nft_handle *h) +static int nft_restart(struct nft_handle *h) { mnl_socket_close(h->nl); diff --git a/iptables/nft.h b/iptables/nft.h index e7225581..310cedec 100644 --- a/iptables/nft.h +++ b/iptables/nft.h @@ -49,7 +49,6 @@ int mnl_talk(struct nft_handle *h, struct nlmsghdr *nlh, void *data); int nft_init(struct nft_handle *h, struct builtin_table *t); void nft_fini(struct nft_handle *h); -int nft_restart(struct nft_handle *h); /* * Operations with tables.