sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 2bf284e42344c24491f7d32ca91736279f901f82
parent 54d062900808b5646bd8e9b0ec856c0a42da90dd
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed, 29 Jul 2015 12:58:06 +0200

improve includes (dont include headers in .h), fix build on Linux

Diffstat:
Msfeed_opml_import.c | 2++
Msfeed_web.c | 2++
Msfeed_xmlenc.c | 1+
Mutil.c | 2+-
Mxml.c | 1+
Mxml.h | 4----
6 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c @@ -1,8 +1,10 @@ /* convert an opml file to sfeedrc file */ +#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_web.c b/sfeed_web.c @@ -1,8 +1,10 @@ #include <ctype.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_xmlenc.c b/sfeed_xmlenc.c @@ -1,4 +1,5 @@ #include <ctype.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/util.c b/util.c @@ -73,7 +73,7 @@ readpath: return strlcat(u->path, p, sizeof(u->path)) >= sizeof(u->path) ? -1 : 0; } -/* get absolute uri; if link is relative use baseuri to make it absolute */ +/* get absolute uri; if `link` is relative use `base` to make it absolute. */ int absuri(const char *link, const char *base, char *buf, size_t bufsiz) { diff --git a/xml.c b/xml.c @@ -1,5 +1,6 @@ #include <ctype.h> #include <errno.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/xml.h b/xml.h @@ -1,7 +1,3 @@ -#include <stdio.h> -#include <stdlib.h> -#include <string.h> - typedef struct xmlparser { /* handlers */ void (*xmltagstart)(struct xmlparser *, const char *, size_t);