summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2020-01-24 01:59:14 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-01-24 02:14:57 +0100
commitd4c8c60b3885873dcc212c8134f23b2739aedbd2 (patch)
tree663a396b3be12be7260deea0f0a8356380aac655
parent89beec4875174d56ea926391d812e1604ff55615 (diff)
cleanup some includes
-rw-r--r--sfeed.c2
-rw-r--r--sfeed_atom.c2
-rw-r--r--sfeed_frames.c7
-rw-r--r--sfeed_gopher.c6
-rw-r--r--sfeed_mbox.c1
-rw-r--r--sfeed_opml_import.c5
-rw-r--r--sfeed_plain.c2
-rw-r--r--sfeed_twtxt.c4
-rw-r--r--sfeed_web.c5
-rw-r--r--sfeed_xmlenc.c3
-rw-r--r--strlcat.c1
-rw-r--r--strlcpy.c1
-rw-r--r--util.c5
-rw-r--r--util.h5
-rw-r--r--xml.c3
-rw-r--r--xml.h2
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 <ctype.h>
#include <err.h>
#include <errno.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
-#include <time.h>
#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 <sys/types.h>
-#include <ctype.h>
#include <err.h>
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include <time.h>
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 <sys/stat.h>
#include <sys/types.h>
-#include <ctype.h>
#include <err.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <limits.h>
-#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
-#include <unistd.h>
#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 <sys/stat.h>
#include <sys/types.h>
-#include <ctype.h>
#include <err.h>
-#include <errno.h>
-#include <fcntl.h>
#include <limits.h>
-#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
-#include <unistd.h>
#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 <err.h>
-#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
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 <sys/types.h>
-
#include <ctype.h>
#include <err.h>
#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <strings.h>
-#include <time.h>
#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 <sys/types.h>
-#include <ctype.h>
#include <err.h>
#include <locale.h>
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include <time.h>
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 <ctype.h>
+#include <sys/types.h>
+
#include <err.h>
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include <time.h>
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 <sys/types.h>
-
#include <ctype.h>
#include <err.h>
#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <strings.h>
-#include <time.h>
#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 <sys/types.h>
-
#include <ctype.h>
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include <strings.h>
#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 <sys/types.h>
#include <string.h>
/*
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 <sys/types.h>
#include <string.h>
/*
diff --git a/util.c b/util.c
index 15e15e0..6b155dc 100644
--- a/util.c
+++ b/util.c
@@ -1,13 +1,8 @@
-#include <sys/types.h>
-
#include <ctype.h>
#include <errno.h>
-#include <limits.h>
-#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <wchar.h>
#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 <stdint.h>
-#include <time.h>
+#include <sys/types.h>
+
+#include <stdio.h>
#ifdef __OpenBSD__
#include <unistd.h>
diff --git a/xml.c b/xml.c
index 9c5d5fc..e6c27d7 100644
--- a/xml.c
+++ b/xml.c
@@ -1,8 +1,5 @@
-#include <sys/types.h>
-
#include <ctype.h>
#include <errno.h>
-#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
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 <stdio.h>
+
typedef struct xmlparser {
/* handlers */
void (*xmlattr)(struct xmlparser *, const char *, size_t,