summaryrefslogtreecommitdiff
path: root/sfeed_mbox.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-08-02 13:45:43 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-08-02 13:45:43 +0200
commitce3a22c641a9a7f1ced983d407e49ba31c71bfd2 (patch)
treea68272ab87076c6609cf8ee1a2acad04029cc597 /sfeed_mbox.c
parent3d972927d748267b0e999ef85bc56bab9e771b5d (diff)
util: simplify parseline() and check t for strtotime().
Diffstat (limited to 'sfeed_mbox.c')
-rw-r--r--sfeed_mbox.c2
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))