summaryrefslogtreecommitdiff
path: root/sfeed_opml_import.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2014-11-11 19:56:05 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2014-11-11 19:56:05 +0100
commit9a52f59fc546d509dc1a859c6cce92f99e31f46d (patch)
tree2095b7fcc079d78b91d298a3913508bfd69489da /sfeed_opml_import.c
parenta855f803fd27af9ec1d19c5d7444ef0ad3d91b0b (diff)
code style, use actual column width of char
Diffstat (limited to 'sfeed_opml_import.c')
-rw-r--r--sfeed_opml_import.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c
index ec54d9e..1399bbf 100644
--- a/sfeed_opml_import.c
+++ b/sfeed_opml_import.c
@@ -11,17 +11,20 @@ static XMLParser parser; /* XML parser state */
static char feedurl[2048], feedname[2048], basesiteurl[2048];
static int
-istag(const char *s1, const char *s2) {
+istag(const char *s1, const char *s2)
+{
return !strcasecmp(s1, s2);
}
static int
-isattr(const char *s1, const char *s2) {
+isattr(const char *s1, const char *s2)
+{
return !strcasecmp(s1, s2);
}
static void
-xml_handler_start_element(XMLParser *p, const char *tag, size_t taglen) {
+xml_handler_start_element(XMLParser *p, const char *tag, size_t taglen)
+{
(void)p;
(void)taglen;
@@ -68,7 +71,8 @@ xml_handler_attr(XMLParser *p, const char *tag, size_t taglen,
}
int
-main(void) {
+main(void)
+{
xmlparser_init(&parser, stdin);
parser.xmltagstart = xml_handler_start_element;