sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 21790adad1672689225efe38b6a59494181d323b
parent 6245c2866bd38dcad51833f39677f99fb25fd0ef
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
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:
Msfeed_atom.c | 2--
Msfeed_curses.c | 2--
Msfeed_frames.c | 2--
Msfeed_gopher.c | 2--
Msfeed_html.c | 2--
Msfeed_json.c | 3+--
Msfeed_plain.c | 2--
Msfeed_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>