netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: netfilter-devel@vger.kernel.org
Cc: phil@nwl.cc
Subject: [PATCH nft 3/3] cli: remove useless #include headers
Date: Fri,  5 Jul 2019 00:59:20 +0200	[thread overview]
Message-ID: <20190704225920.3671-3-pablo@netfilter.org> (raw)
In-Reply-To: <20190704225920.3671-1-pablo@netfilter.org>

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 include/cli.h | 1 +
 src/cli.c     | 8 +-------
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/include/cli.h b/include/cli.h
index 3780e0917969..c1819d464327 100644
--- a/include/cli.h
+++ b/include/cli.h
@@ -1,6 +1,7 @@
 #ifndef _NFT_CLI_H_
 #define _NFT_CLI_H_
 
+#include <nftables/libnftables.h>
 #include <config.h>
 
 struct parser_state;
diff --git a/src/cli.c b/src/cli.c
index bbdd0fdbeeb8..f1e89926f2bc 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -24,14 +24,8 @@
 #include <readline/readline.h>
 #include <readline/history.h>
 
-#include <nftables.h>
-#include <parser.h>
-#include <erec.h>
-#include <utils.h>
-#include <iface.h>
 #include <cli.h>
-
-#include <libmnl/libmnl.h>
+#include <list.h>
 
 #define CMDLINE_HISTFILE	".nft.history"
 
-- 
2.11.0


      parent reply	other threads:[~2019-07-04 22:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-04 22:59 [PATCH nft 1/3,v2] src: use malloc() and free() from cli and main Pablo Neira Ayuso
2019-07-04 22:59 ` [PATCH nft 2/3] main: replace NFT_EXIT_NOMEM by EXIT_FAILURE Pablo Neira Ayuso
2019-07-04 22:59 ` Pablo Neira Ayuso [this message]

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=20190704225920.3671-3-pablo@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=phil@nwl.cc \
    /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).