diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-16 20:09:59 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-16 20:09:59 +0200 |
commit | 29fa81e623c0e8787fcdc7a6109c3a24b562564a (patch) | |
tree | bcf15cea35606e8e55cebc03d76fad69b89d4bc7 /sfeed_plain.c | |
parent | c4573f3289e429b939da0b5ac6d4a950ce72466a (diff) |
code-style + no need to zero static variables
Diffstat (limited to 'sfeed_plain.c')
-rw-r--r-- | sfeed_plain.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfeed_plain.c b/sfeed_plain.c index 23cb868..64c2b68 100644 --- a/sfeed_plain.c +++ b/sfeed_plain.c @@ -9,8 +9,8 @@ #include "util.h" static time_t comparetime; -static char *line = NULL; -static size_t size = 0; +static char *line; +static size_t linesize; /* print `len' columns of characters. If string is shorter pad the rest * with characters `pad`. */ @@ -41,7 +41,7 @@ printfeed(FILE *fp, const char *feedname) char *fields[FieldLast]; time_t parsedtime; - while (parseline(&line, &size, fields, fp) > 0) { + while (parseline(&line, &linesize, fields, fp) > 0) { parsedtime = 0; strtotime(fields[FieldUnixTimestamp], &parsedtime); |