summaryrefslogtreecommitdiffstats
path: root/iptables
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-04-24 16:42:42 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-04-24 16:42:42 +0200
commit7a37d1407e4446e7e84ec038bf4d2d3dac9f2138 (patch)
treec1982b8b1fc7be996babe7e238d63edd9d2ab03d /iptables
parenta3aac1dd49f4604226c40968457e378e50b9784a (diff)
iptables-compat: statify nft_restart()
This function is only used from iptables/nft.c. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables')
-rw-r--r--iptables/nft.c2
-rw-r--r--iptables/nft.h1
2 files changed, 1 insertions, 2 deletions
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.