sfeed

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

commit d4c8c60b3885873dcc212c8134f23b2739aedbd2
parent 89beec4875174d56ea926391d812e1604ff55615
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 24 Jan 2020 01:59:14 +0100

cleanup some includes

Diffstat:
Msfeed.c | 2+-
Msfeed_atom.c | 2--
Msfeed_frames.c | 7-------
Msfeed_gopher.c | 6------
Msfeed_mbox.c | 1-
Msfeed_opml_import.c | 5-----
Msfeed_plain.c | 2--
Msfeed_twtxt.c | 4++--
Msfeed_web.c | 5-----
Msfeed_xmlenc.c | 3---
Mstrlcat.c | 1-
Mstrlcpy.c | 1-
Mutil.c | 5-----
Mutil.h | 5+++--
Mxml.c | 3---
Mxml.h | 2++
16 files changed, 8 insertions(+), 46 deletions(-)

diff --git 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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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,