summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2023-05-16 20:11:21 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2023-05-16 20:11:21 +0200
commit21790adad1672689225efe38b6a59494181d323b (patch)
tree2adc640d9a8fb0a08795dab414ade91959900279
parent6245c2866bd38dcad51833f39677f99fb25fd0ef (diff)
improve to use proper includes
Reduce using some of the unneeded sys/* headers too. This makes it slightly more portable or easier to port also.
-rw-r--r--sfeed_atom.c2
-rw-r--r--sfeed_curses.c2
-rw-r--r--sfeed_frames.c2
-rw-r--r--sfeed_gopher.c2
-rw-r--r--sfeed_html.c2
-rw-r--r--sfeed_json.c3
-rw-r--r--sfeed_plain.c2
-rw-r--r--sfeed_twtxt.c2
8 files changed, 1 insertions, 16 deletions
diff --git a/sfeed_atom.c b/sfeed_atom.c
index 99facad..d0b139d 100644
--- a/sfeed_atom.c
+++ b/sfeed_atom.c
@@ -1,5 +1,3 @@
-#include <sys/types.h>
-
#include <stdio.h>
#include <string.h>
#include <time.h>
diff --git a/sfeed_curses.c b/sfeed_curses.c
index f54b4d6..0ce9a4e 100644
--- a/sfeed_curses.c
+++ b/sfeed_curses.c
@@ -1,7 +1,5 @@
#include <sys/ioctl.h>
#include <sys/select.h>
-#include <sys/time.h>
-#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
diff --git a/sfeed_frames.c b/sfeed_frames.c
index b2f75cf..53f44a6 100644
--- a/sfeed_frames.c
+++ b/sfeed_frames.c
@@ -1,5 +1,3 @@
-#include <sys/types.h>
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/sfeed_gopher.c b/sfeed_gopher.c
index af6a49c..c879864 100644
--- a/sfeed_gopher.c
+++ b/sfeed_gopher.c
@@ -1,5 +1,3 @@
-#include <sys/types.h>
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/sfeed_html.c b/sfeed_html.c
index 9269413..2142145 100644
--- a/sfeed_html.c
+++ b/sfeed_html.c
@@ -1,5 +1,3 @@
-#include <sys/types.h>
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/sfeed_json.c b/sfeed_json.c
index e177d2b..4fe5942 100644
--- a/sfeed_json.c
+++ b/sfeed_json.c
@@ -1,7 +1,6 @@
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
+#include <time.h>
#include "util.h"
diff --git a/sfeed_plain.c b/sfeed_plain.c
index f8ce7ec..adeefdb 100644
--- a/sfeed_plain.c
+++ b/sfeed_plain.c
@@ -1,5 +1,3 @@
-#include <sys/types.h>
-
#include <locale.h>
#include <stdio.h>
#include <string.h>
diff --git a/sfeed_twtxt.c b/sfeed_twtxt.c
index 1d8ab36..1bb9d3b 100644
--- a/sfeed_twtxt.c
+++ b/sfeed_twtxt.c
@@ -1,5 +1,3 @@
-#include <sys/types.h>
-
#include <stdio.h>
#include <string.h>
#include <time.h>