diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-05-16 15:54:22 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-05-16 15:54:22 +0200 |
commit | 0bb808b9bc9c673a086bcb3c5129b3b0691dd063 (patch) | |
tree | ce2f9b94e3bcedcddaacaffcc41b8a242fad2f58 /sfeed_opml_import.c | |
parent | 5eb71daeacda95d4f93ecb0f3966cf69b09b8553 (diff) |
xml: adjust for API change: read from fd
Diffstat (limited to 'sfeed_opml_import.c')
-rw-r--r-- | sfeed_opml_import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c index adf5c45..e79a2ef 100644 --- a/sfeed_opml_import.c +++ b/sfeed_opml_import.c @@ -73,7 +73,7 @@ xml_handler_attr(XMLParser *p, const char *tag, size_t taglen, int main(void) { - xmlparser_init(&parser, stdin); + memset(&parser, 0, sizeof(parser)); parser.xmltagstart = xml_handler_start_element; parser.xmltagend = xml_handler_end_element; parser.xmlattr = xml_handler_attr; @@ -88,7 +88,7 @@ main(void) "# list of feeds to fetch:\n" "feeds() {\n" " # feed <name> <feedurl> <basesiteurl> [encoding]\n", stdout); - xmlparser_parse(&parser); + xmlparser_parse_fd(&parser, 0); fputs("}\n", stdout); return 0; |