summaryrefslogtreecommitdiff
path: root/sfeed_opml_import.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-01-31 15:45:41 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-01-31 15:45:41 +0100
commitb88aad839e5a541ef24ecc216d3824c5af3b59f6 (patch)
treeb41c043bc01cab31bc20c2fe9fdd8a3b1e25b683 /sfeed_opml_import.c
parent5e43bd658e578ced54f6065e95f6efb4892e114c (diff)
sfeed_opml_import: fix compat
Diffstat (limited to 'sfeed_opml_import.c')
-rw-r--r--sfeed_opml_import.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c
index c8dc60b..ce6df5b 100644
--- a/sfeed_opml_import.c
+++ b/sfeed_opml_import.c
@@ -6,7 +6,7 @@
#include <strings.h>
#include <time.h>
-#include "compat.h"
+#include "util.h"
#include "xml.h"
static XMLParser parser; /* XML parser state */
@@ -15,10 +15,9 @@ static char url[2048], text[256], title[256];
static void
printsafe(const char *s)
{
- for (; *s; s++) {
+ for (; *s; s++)
if (!iscntrl((int)*s) && *s != '\'' && *s != '\\')
putchar((int)*s);
- }
}
static void