commit b4f56922b54001f1293b002ec01df6c8b0beb117
parent bc659088cf6d711db8bd1c40deb9d403f855cf14
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 1 Apr 2014 00:25:46 +0200
whitespace fixes
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat:
3 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/sfeed.c b/sfeed.c
@@ -299,7 +299,7 @@ gettimetz(const char *s, char *buf, size_t bufsiz) {
}
} else
memcpy(tzname, "GMT", strlen("GMT") + 1);
- if(!(*p)) {
+ if(!(*p)) {
strlcpy(buf, tzname, bufsiz); /* TODO: dont depend on strlcpy? */
return 0;
}
@@ -412,8 +412,8 @@ parsetime(const char *s, char *buf) {
/* TODO: make sure snprintf cant overflow */
if(buf)
sprintf(buf, "%04d-%02d-%02d %02d:%02d:%02d %-.16s",
- tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
- tm.tm_hour, tm.tm_min, tm.tm_sec, tz);
+ tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
+ tm.tm_hour, tm.tm_min, tm.tm_sec, tz);
/* return UNIX time, reverse offset to GMT+0 */
return tmtotime(&tm) - offset;
}
@@ -466,7 +466,7 @@ string_print_textblock(String *s) {
size_t i;
if(!s->len)
- return;
+ return;
/* skip leading whitespace */
for(p = s->data; *p && isspace((int)*p); p++);
for(i = 0; *p; p++) {
@@ -501,7 +501,7 @@ string_print(String *s) {
size_t i;
if(!s->len)
- return;
+ return;
/* skip leading whitespace */
for(p = s->data; *p && isspace((int)*p); p++);
for(i = 0; *p; p++) {
@@ -785,7 +785,7 @@ xml_handler_end_element(XMLParser *p, const char *name, size_t namelen, int issh
feeditemtag[0] = '\0'; /* unset tag */
feeditemtaglen = 0;
feeditemtagid = TagUnknown;
-
+
/* not sure if needed */
iscontenttag = 0;
iscontent = 0;
@@ -794,7 +794,7 @@ xml_handler_end_element(XMLParser *p, const char *name, size_t namelen, int issh
feeditemtag[0] = '\0'; /* unset tag */
feeditemtaglen = 0;
feeditemtagid = TagUnknown;
-
+
/* not sure if needed */
iscontenttag = 0;
iscontent = 0;
diff --git a/sfeed_frames.c b/sfeed_frames.c
@@ -142,10 +142,10 @@ main(int argc, char **argv) {
*/
-
-
-
+
+
+
/* first of feed section or new feed section. */
if(!totalfeeds || strcmp(feedcurrent->name, fields[FieldFeedName])) {
@@ -165,7 +165,7 @@ main(int argc, char **argv) {
if(mkdir(dirpath, S_IRWXU) != -1) {
fprintf(stderr, "sfeed_frames: can't write '%s'\n", dirpath);
exit(EXIT_FAILURE);
- }
+ }
/* TODO: test, replaces strncpy (strncpy is slow) */
reldirpath[0] = '\0';
if(namelen < sizeof(reldirpath) - 2) {
@@ -193,8 +193,8 @@ main(int argc, char **argv) {
} else {
-
-
+
+
feedcurrent = f;
diff --git a/sfeed_html.c b/sfeed_html.c
@@ -78,7 +78,7 @@ main(void) {
if(!(feedcurrent->name = strdup(fields[FieldFeedName])))
die("can't allocate enough memory");
-
+
/*
feedcurrent->totalnew = 0;
feedcurrent->total = 0;