diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-07-28 21:56:46 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-07-28 21:56:46 +0200 |
commit | 8e21dabb94089349e4fd5589f9847b29f7a2704c (patch) | |
tree | 95ec6d7b16c0c539b4c62eafc72f44d7b97239bc /sfeed_opml_import.c | |
parent | b17d0316dc51c254d503e7a095a5883f1848c7f6 (diff) |
improve code-style and consistency
Diffstat (limited to 'sfeed_opml_import.c')
-rw-r--r-- | sfeed_opml_import.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c index e79a2ef..db10ea7 100644 --- a/sfeed_opml_import.c +++ b/sfeed_opml_import.c @@ -28,7 +28,7 @@ xml_handler_start_element(XMLParser *p, const char *tag, size_t taglen) (void)p; (void)taglen; - if(istag(tag, "outline")) { + if (istag(tag, "outline")) { feedurl[0] = '\0'; feedname[0] = '\0'; basesiteurl[0] = '\0'; @@ -43,7 +43,7 @@ xml_handler_end_element(XMLParser *p, const char *tag, size_t taglen, (void)taglen; (void)isshort; - if(istag(tag, "outline")) { + if (istag(tag, "outline")) { printf("\tfeed \"%s\" \"%s\" \"%s\"\n", feedname[0] ? feedname : "unnamed", feedurl[0] ? feedurl : "", @@ -60,12 +60,12 @@ xml_handler_attr(XMLParser *p, const char *tag, size_t taglen, (void)namelen; (void)valuelen; - if(istag(tag, "outline")) { - if(isattr(name, "text") || isattr(name, "title")) + if (istag(tag, "outline")) { + if (isattr(name, "text") || isattr(name, "title")) strlcpy(feedname, value, sizeof(feedname)); - else if(isattr(name, "htmlurl")) + else if (isattr(name, "htmlurl")) strlcpy(basesiteurl, value, sizeof(basesiteurl)); - else if(isattr(name, "xmlurl")) + else if (isattr(name, "xmlurl")) strlcpy(feedurl, value, sizeof(feedurl)); } } |