Introduction
Introduction Statistics Contact Development Disclaimer Help
improve to use proper includes - sfeed - RSS and Atom parser
git clone git://git.codemadness.org/sfeed
Log
Files
Refs
README
LICENSE
---
commit 21790adad1672689225efe38b6a59494181d323b
parent 6245c2866bd38dcad51833f39677f99fb25fd0ef
Author: Hiltjo Posthuma <[email protected]>
Date: Tue, 16 May 2023 20:11:21 +0200
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.
Diffstat:
M sfeed_atom.c | 2 --
M sfeed_curses.c | 2 --
M sfeed_frames.c | 2 --
M sfeed_gopher.c | 2 --
M sfeed_html.c | 2 --
M sfeed_json.c | 3 +--
M sfeed_plain.c | 2 --
M sfeed_twtxt.c | 2 --
8 files changed, 1 insertion(+), 16 deletions(-)
---
diff --git 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -1,5 +1,3 @@
-#include <sys/types.h>
-
#include <stdio.h>
#include <string.h>
#include <time.h>
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.