From d4c8c60b3885873dcc212c8134f23b2739aedbd2 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 24 Jan 2020 01:59:14 +0100 Subject: cleanup some includes --- sfeed.c | 2 +- sfeed_atom.c | 2 -- sfeed_frames.c | 7 ------- sfeed_gopher.c | 6 ------ sfeed_mbox.c | 1 - sfeed_opml_import.c | 5 ----- sfeed_plain.c | 2 -- sfeed_twtxt.c | 4 ++-- sfeed_web.c | 5 ----- sfeed_xmlenc.c | 3 --- strlcat.c | 1 - strlcpy.c | 1 - util.c | 5 ----- util.h | 5 +++-- xml.c | 3 --- xml.h | 2 ++ 16 files changed, 8 insertions(+), 46 deletions(-) diff --git a/sfeed.c b/sfeed.c index 804839c..9610cc5 100644 --- a/sfeed.c +++ b/sfeed.c @@ -3,11 +3,11 @@ #include #include #include +#include #include #include #include #include -#include #include "util.h" #include "xml.h" diff --git a/sfeed_atom.c b/sfeed_atom.c index a9c6589..844bd2e 100644 --- a/sfeed_atom.c +++ b/sfeed_atom.c @@ -1,9 +1,7 @@ #include -#include #include #include -#include #include #include diff --git a/sfeed_frames.c b/sfeed_frames.c index 43ffcd3..16d7871 100644 --- a/sfeed_frames.c +++ b/sfeed_frames.c @@ -1,17 +1,10 @@ -#include #include -#include #include -#include -#include -#include -#include #include #include #include #include -#include #include "util.h" diff --git a/sfeed_gopher.c b/sfeed_gopher.c index 4100c62..27f23ef 100644 --- a/sfeed_gopher.c +++ b/sfeed_gopher.c @@ -1,17 +1,11 @@ -#include #include -#include #include -#include -#include #include -#include #include #include #include #include -#include #include "util.h" diff --git a/sfeed_mbox.c b/sfeed_mbox.c index d4d6bc3..eabe5fa 100644 --- a/sfeed_mbox.c +++ b/sfeed_mbox.c @@ -1,5 +1,4 @@ #include -#include #include #include #include diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c index 0802542..47cc1ab 100644 --- a/sfeed_opml_import.c +++ b/sfeed_opml_import.c @@ -1,12 +1,7 @@ -#include - #include #include #include -#include -#include #include -#include #include "util.h" #include "xml.h" diff --git a/sfeed_plain.c b/sfeed_plain.c index ab9a634..e08e466 100644 --- a/sfeed_plain.c +++ b/sfeed_plain.c @@ -1,10 +1,8 @@ #include -#include #include #include #include -#include #include #include diff --git a/sfeed_twtxt.c b/sfeed_twtxt.c index 46f5066..cda85ee 100644 --- a/sfeed_twtxt.c +++ b/sfeed_twtxt.c @@ -1,7 +1,7 @@ -#include +#include + #include #include -#include #include #include diff --git a/sfeed_web.c b/sfeed_web.c index d967e91..745d88e 100644 --- a/sfeed_web.c +++ b/sfeed_web.c @@ -1,12 +1,7 @@ -#include - #include #include #include -#include -#include #include -#include #include "util.h" #include "xml.h" diff --git a/sfeed_xmlenc.c b/sfeed_xmlenc.c index ee62741..15372b4 100644 --- a/sfeed_xmlenc.c +++ b/sfeed_xmlenc.c @@ -1,10 +1,7 @@ -#include - #include #include #include #include -#include #include #include "util.h" diff --git a/strlcat.c b/strlcat.c index 14c53a1..05d0c8f 100644 --- a/strlcat.c +++ b/strlcat.c @@ -16,7 +16,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include /* diff --git a/strlcpy.c b/strlcpy.c index e9a7fe4..67a989c 100644 --- a/strlcpy.c +++ b/strlcpy.c @@ -16,7 +16,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include /* diff --git a/util.c b/util.c index 15e15e0..6b155dc 100644 --- a/util.c +++ b/util.c @@ -1,13 +1,8 @@ -#include - #include #include -#include -#include #include #include #include -#include #include #include "util.h" diff --git a/util.h b/util.h index 69de19e..6d0d58d 100644 --- a/util.h +++ b/util.h @@ -1,5 +1,6 @@ -#include -#include +#include + +#include #ifdef __OpenBSD__ #include diff --git a/xml.c b/xml.c index 9c5d5fc..e6c27d7 100644 --- a/xml.c +++ b/xml.c @@ -1,8 +1,5 @@ -#include - #include #include -#include #include #include #include diff --git a/xml.h b/xml.h index 990d66d..4a56588 100644 --- a/xml.h +++ b/xml.h @@ -1,6 +1,8 @@ #ifndef _XML_H #define _XML_H +#include + typedef struct xmlparser { /* handlers */ void (*xmlattr)(struct xmlparser *, const char *, size_t, -- cgit v1.2.3