summaryrefslogtreecommitdiff
path: root/sfeed_opml_import.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-07-28 21:56:46 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-07-28 21:56:46 +0200
commit8e21dabb94089349e4fd5589f9847b29f7a2704c (patch)
tree95ec6d7b16c0c539b4c62eafc72f44d7b97239bc /sfeed_opml_import.c
parentb17d0316dc51c254d503e7a095a5883f1848c7f6 (diff)
improve code-style and consistency
Diffstat (limited to 'sfeed_opml_import.c')
-rw-r--r--sfeed_opml_import.c12
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));
}
}