summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-01-02 15:40:46 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-01-02 15:40:46 +0100
commit13f9be316fd3bc1b87b7c710bc30bbccfcbfab0d (patch)
tree3117af34e6494c3035cdeb3d6c416d5e4ce8a427
parentcfc803db5bbcfa4430761b99b9727c84ae1b4539 (diff)
sfeed: style
-rw-r--r--sfeed.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sfeed.c b/sfeed.c
index 5c9cfb2..e659d5b 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -35,9 +35,9 @@ enum {
/* String data / memory pool */
typedef struct string {
- char *data; /* data */
- size_t len; /* string length */
- size_t bufsiz; /* allocated size */
+ char *data; /* data */
+ size_t len; /* string length */
+ size_t bufsiz; /* allocated size */
} String;
/* Feed item */
@@ -46,10 +46,10 @@ typedef struct feeditem {
String title;
String link;
String content;
- int contenttype; /* ContentTypePlain or ContentTypeHTML */
+ int contenttype; /* ContentTypePlain or ContentTypeHTML */
String id;
String author;
- int feedtype; /* FeedTypeRSS or FeedTypeAtom */
+ int feedtype; /* FeedTypeRSS or FeedTypeAtom */
} FeedItem;
typedef struct feedtag {
@@ -226,7 +226,7 @@ entitytostr(const char *e, char *buffer, size_t bufsiz)
buffer[b] = (cp >> (8 * (len - 1 - b))) & 0xff;
buffer[len] = '\0';
/* escape whitespace */
- if(ISWSNOSPACE(buffer[0])) { /* isspace(c) && c != ' ' */
+ if(ISWSNOSPACE(buffer[0])) {
switch(buffer[0]) {
case '\n': c = 'n'; break;
case '\\': c = '\\'; break;