From 8e21dabb94089349e4fd5589f9847b29f7a2704c Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Tue, 28 Jul 2015 21:56:46 +0200 Subject: improve code-style and consistency --- sfeed_xmlenc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sfeed_xmlenc.c') 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'); } -- cgit v1.2.3