]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables-compat: statify nft_restart()
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 24 Apr 2018 14:42:42 +0000 (16:42 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 24 Apr 2018 14:42:42 +0000 (16:42 +0200)
This function is only used from iptables/nft.c.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft.c
iptables/nft.h

index ffc9e95ed8a7101d3f3f4195d7932119500cfe7b..2610de441bdfbe3bf7c37523aa36b5520cc4388c 100644 (file)
@@ -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);
 
index e72255811c8fd0f61338c48cc27087e2c23303e1..310cedeca73072cdd0fd38cbdb4cda5f30423abb 100644 (file)
@@ -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.