diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-02 13:45:43 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-02 13:45:43 +0200 |
commit | ce3a22c641a9a7f1ced983d407e49ba31c71bfd2 (patch) | |
tree | a68272ab87076c6609cf8ee1a2acad04029cc597 /sfeed_mbox.c | |
parent | 3d972927d748267b0e999ef85bc56bab9e771b5d (diff) |
util: simplify parseline() and check t for strtotime().
Diffstat (limited to 'sfeed_mbox.c')
-rw-r--r-- | sfeed_mbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed_mbox.c b/sfeed_mbox.c index 10b31c8..6e171cb 100644 --- a/sfeed_mbox.c +++ b/sfeed_mbox.c @@ -76,7 +76,7 @@ printfeed(FILE *fp, const char *feedname) if (!strftime(mtimebuf, sizeof(mtimebuf), "%a %b %d %H:%M:%S %Y", &tm)) errx(1, "can't format current time"); - while (parseline(&line, &linesize, fields, FieldLast, '\t', fp) > 0) { + while (parseline(&line, &linesize, fields, fp) > 0) { if ((r = strtotime(fields[FieldUnixTimestamp], &parsedtime)) == -1) continue; /* invalid date */ if (!gmtime_r(&parsedtime, &tm)) |