summaryrefslogtreecommitdiff
path: root/sfeed_opml_import.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-01-02 15:32:45 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-01-02 15:32:45 +0100
commitf5be0d36c5d45c10e055c13dd8060152effa3aed (patch)
tree940dd802eceaccbc78cdd865f3f88faec5f070cb /sfeed_opml_import.c
parentbcd1e1972d63cdd2ca8b42572a129be521558aba (diff)
cleanup
- dont free at end (not needed in our case). - use 0 and 1 instead of EXIT_SUCCESS, EXIT_FAILURE. - use err (from err.h) instead of custom die().
Diffstat (limited to 'sfeed_opml_import.c')
-rw-r--r--sfeed_opml_import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c
index 1399bbf..adf5c45 100644
--- a/sfeed_opml_import.c
+++ b/sfeed_opml_import.c
@@ -74,7 +74,6 @@ int
main(void)
{
xmlparser_init(&parser, stdin);
-
parser.xmltagstart = xml_handler_start_element;
parser.xmltagend = xml_handler_end_element;
parser.xmlattr = xml_handler_attr;
@@ -91,5 +90,6 @@ main(void)
" # feed <name> <feedurl> <basesiteurl> [encoding]\n", stdout);
xmlparser_parse(&parser);
fputs("}\n", stdout);
- return EXIT_SUCCESS;
+
+ return 0;
}