From 2bf284e42344c24491f7d32ca91736279f901f82 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 29 Jul 2015 12:58:06 +0200 Subject: improve includes (dont include headers in .h), fix build on Linux --- sfeed_opml_import.c | 2 ++ sfeed_web.c | 2 ++ sfeed_xmlenc.c | 1 + util.c | 2 +- xml.c | 1 + xml.h | 4 ---- 6 files changed, 7 insertions(+), 5 deletions(-) diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c index db10ea7..7f7cf91 100644 --- a/sfeed_opml_import.c +++ b/sfeed_opml_import.c @@ -1,8 +1,10 @@ /* convert an opml file to sfeedrc file */ +#include #include #include #include #include +#include #include "util.h" #include "xml.h" diff --git a/sfeed_web.c b/sfeed_web.c index 5ad6449..075cedd 100644 --- a/sfeed_web.c +++ b/sfeed_web.c @@ -1,8 +1,10 @@ #include +#include #include #include #include #include +#include #include "util.h" #include "xml.h" diff --git a/sfeed_xmlenc.c b/sfeed_xmlenc.c index e08099d..52fa5a8 100644 --- a/sfeed_xmlenc.c +++ b/sfeed_xmlenc.c @@ -1,4 +1,5 @@ #include +#include #include #include #include diff --git a/util.c b/util.c index 797b934..a463e31 100644 --- 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 index 79f30b5..bd6a810 100644 --- a/xml.c +++ b/xml.c @@ -1,5 +1,6 @@ #include #include +#include #include #include #include diff --git a/xml.h b/xml.h index 03abdbf..b20cc95 100644 --- a/xml.h +++ b/xml.h @@ -1,7 +1,3 @@ -#include -#include -#include - typedef struct xmlparser { /* handlers */ void (*xmltagstart)(struct xmlparser *, const char *, size_t); -- cgit v1.2.3