commit a917dd06f09b3f15daf8c8f63397468be81ac488
parent 4ddeb2209f63cf2dba12f73263f5de07822b3690
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed,  5 Aug 2015 23:42:54 +0200

sfeed: minor cleanup

Diffstat:
Msfeed.c | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/sfeed.c b/sfeed.c @@ -131,7 +131,7 @@ gettag(enum FeedType feedtype, const char *name, size_t namelen) { STRP("updated"), AtomTagUpdated }, { NULL, 0, -1 } }; - const FeedTag *tags = NULL; + const FeedTag *tags; int i, n; /* optimization: these are always non-matching */ @@ -293,7 +293,6 @@ static int parsetime(const char *s, char *buf, size_t bufsiz, time_t *tp) { time_t t; - char tz[64] = ""; struct tm tm; const char *formats[] = { "%a, %d %b %Y %H:%M:%S", @@ -301,7 +300,7 @@ parsetime(const char *s, char *buf, size_t bufsiz, time_t *tp) "%Y-%m-%dT%H:%M:%S", NULL }; - char *p; + char tz[16], *p; size_t i; int tzoffset, r; @@ -374,7 +373,7 @@ string_print_trimmed(String *s) for (; *p && p != e; p++) { if (isspace((int)*p)) - putchar(' '); + putchar(' '); /* any whitespace to space */ else if (!iscntrl((int)*p)) /* ignore other control chars */ putchar((int)*p);