summaryrefslogtreecommitdiff
path: root/sfeed_xmlenc.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_xmlenc.c
parentb17d0316dc51c254d503e7a095a5883f1848c7f6 (diff)
improve code-style and consistency
Diffstat (limited to 'sfeed_xmlenc.c')
-rw-r--r--sfeed_xmlenc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfeed_xmlenc.c b/sfeed_xmlenc.c
index 7bd54a6..e08099d 100644
--- a/sfeed_xmlenc.c
+++ b/sfeed_xmlenc.c
@@ -14,7 +14,7 @@ xmltagstart(XMLParser *p, const char *tag, size_t taglen)
(void)p;
/* optimization: try to find processing instruction at start */
- if(tags > 3)
+ if (tags > 3)
exit(1);
isxmlpi = (!strncasecmp(tag, "?xml", taglen)) ? 1 : 0;
tags++;
@@ -40,10 +40,10 @@ xmlattr(XMLParser *p, const char *tag, size_t taglen, const char *name,
(void)taglen;
(void)valuelen;
- if(isxmlpi && (!strncasecmp(name, "encoding", namelen))) {
- if(*value) {
+ if (isxmlpi && (!strncasecmp(name, "encoding", namelen))) {
+ if (*value) {
/* output lowercase */
- for(; *value; value++)
+ for (; *value; value++)
putc(tolower((int)*value), stdout);
putchar('\n');
}