diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-05 23:42:54 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-05 23:42:54 +0200 |
commit | a917dd06f09b3f15daf8c8f63397468be81ac488 (patch) | |
tree | 6a7c048380acd4aa6604cc100d993b113687b6ed | |
parent | 4ddeb2209f63cf2dba12f73263f5de07822b3690 (diff) |
sfeed: minor cleanup
-rw-r--r-- | sfeed.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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); |