From: Yanchuan Nian <ycnian@gmail.com>
To: pablo@netfilter.org
Cc: netfilter-devel@vger.kernel.org, Yanchuan Nian <ycnian@gmail.com>
Subject: [nft PATCH] Remove unused function netlink_get_table
Date: Mon, 11 Aug 2014 10:37:14 +0800 [thread overview]
Message-ID: <1407724634-21515-1-git-send-email-ycnian@gmail.com> (raw)
netlink_get_table is defined but not used anywhere. Just remove it.
Signed-off-by: Yanchuan Nian <ycnian@gmail.com>
---
include/netlink.h | 2 --
src/netlink.c | 18 ------------------
2 files changed, 20 deletions(-)
diff --git a/include/netlink.h b/include/netlink.h
index af5dcd9..29cd45c 100644
--- a/include/netlink.h
+++ b/include/netlink.h
@@ -107,8 +107,6 @@ extern int netlink_delete_table(struct netlink_ctx *ctx, const struct handle *h,
const struct location *loc);
extern int netlink_list_tables(struct netlink_ctx *ctx, const struct handle *h,
const struct location *loc);
-extern int netlink_get_table(struct netlink_ctx *ctx, const struct handle *h,
- const struct location *loc);
extern int netlink_list_table(struct netlink_ctx *ctx, const struct handle *h,
const struct location *loc);
extern int netlink_flush_table(struct netlink_ctx *ctx, const struct handle *h,
diff --git a/src/netlink.c b/src/netlink.c
index dc7a7c4..5ada2fd 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -936,24 +936,6 @@ int netlink_list_tables(struct netlink_ctx *ctx, const struct handle *h,
return 0;
}
-int netlink_get_table(struct netlink_ctx *ctx, const struct handle *h,
- const struct location *loc)
-{
- struct nft_table *nlt;
- int err;
-
- nlt = alloc_nft_table(h);
- err = mnl_nft_table_get(nf_sock, nlt, 0);
- nft_table_free(nlt);
-
- if (err < 0)
- return netlink_io_error(ctx, loc,
- "Could not receive table from kernel: %s",
- strerror(errno));
- return err;
-}
-
-
int netlink_list_table(struct netlink_ctx *ctx, const struct handle *h,
const struct location *loc)
{
--
1.9.3
reply other threads:[~2014-08-11 2:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1407724634-21515-1-git-send-email-ycnian@gmail.com \
--to=ycnian@gmail.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).