From a917dd06f09b3f15daf8c8f63397468be81ac488 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 5 Aug 2015 23:42:54 +0200 Subject: sfeed: minor cleanup --- sfeed.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sfeed.c b/sfeed.c index 28f7f16..3ba70c9 100644 --- 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); -- cgit v1.2.3