netlink_get_table is defined but not used anywhere. Just remove it. Signed-off-by: Yanchuan Nian <ycnian@xxxxxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html