diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-07-29 12:58:06 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-07-29 12:59:54 +0200 |
commit | 2bf284e42344c24491f7d32ca91736279f901f82 (patch) | |
tree | 77040db316819abf4244f5652acc7529c0a69729 | |
parent | 54d062900808b5646bd8e9b0ec856c0a42da90dd (diff) |
improve includes (dont include headers in .h), fix build on Linux
-rw-r--r-- | sfeed_opml_import.c | 2 | ||||
-rw-r--r-- | sfeed_web.c | 2 | ||||
-rw-r--r-- | sfeed_xmlenc.c | 1 | ||||
-rw-r--r-- | util.c | 2 | ||||
-rw-r--r-- | xml.c | 1 | ||||
-rw-r--r-- | 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 <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 index 5ad6449..075cedd 100644 --- 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 index e08099d..52fa5a8 100644 --- 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> @@ -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) { @@ -1,5 +1,6 @@ #include <ctype.h> #include <errno.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.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); |