summaryrefslogtreecommitdiff
path: root/sfeed_opml_import.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-08-22 20:11:05 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-08-22 20:11:05 +0200
commit2d5b42efae35300a9eb7cc3a834dc8c522bf5a71 (patch)
treeee85145ae4e426bf2ea2e01934d43545d5bc39a2 /sfeed_opml_import.c
parent1ad44956f0f7b044440f04ee72a7affef48b804c (diff)
xml: simplify XML reader
Diffstat (limited to 'sfeed_opml_import.c')
-rw-r--r--sfeed_opml_import.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c
index 248d4c2..c8dc60b 100644
--- a/sfeed_opml_import.c
+++ b/sfeed_opml_import.c
@@ -95,7 +95,8 @@ main(void)
"# list of feeds to fetch:\n"
"feeds() {\n"
" # feed <name> <feedurl> [basesiteurl] [encoding]\n", stdout);
- xml_parse_fd(&parser, 0);
+ parser.getnext = getchar;
+ xml_parse(&parser);
fputs("}\n", stdout);
return 0;