summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed_opml_import.c2
-rw-r--r--sfeed_web.c2
-rw-r--r--sfeed_xmlenc.c1
-rw-r--r--util.c2
-rw-r--r--xml.c1
-rw-r--r--xml.h4
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>
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 <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
index 03abdbf..b20cc95 100644
--- 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);