sfeed_curses

[fork] sfeed (atom feed) reader
Log | Files | Refs | README | LICENSE

commit 5f73fced6f8e7c9a0b21f8840109fa88a86a7fa3
parent b8eb3cd51d5e16986785b073b0b234dc3aeabe2e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 16 Jul 2020 17:28:51 +0200

linetoitem: code-style + do not set isnew here

it was done twice.

Diffstat:
Msfeed_curses.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sfeed_curses.c b/sfeed_curses.c @@ -987,6 +987,7 @@ linetoitem(char *line, struct item *item) item->line = line; parseline(line, fields); + memcpy(item->fields, fields, sizeof(fields)); parsedtime = 0; if (!strtotime(fields[FieldUnixTimestamp], &parsedtime)) { @@ -997,9 +998,6 @@ linetoitem(char *line, struct item *item) item->timeok = 0; } - item->isnew = (item->timeok && parsedtime >= comparetime); - memcpy(item->fields, fields, sizeof(fields)); - return 0; }