From 7c99000c207c120d4094277b6ede56a36b929b46 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 1 Apr 2020 18:40:02 +0200 Subject: util: improve/cleanup parseline() - remove a check that has no use/can never happen. - remove the return value as it's unused and the input size is known. - fix an old comment that doesn't reflect what the function does anymore. --- sfeed_mbox.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sfeed_mbox.c') diff --git a/sfeed_mbox.c b/sfeed_mbox.c index 1aab49b..587429b 100644 --- a/sfeed_mbox.c +++ b/sfeed_mbox.c @@ -34,8 +34,7 @@ printfeed(FILE *fp, const char *feedname) if (line[linelen - 1] == '\n') line[--linelen] = '\0'; hash = djb2((unsigned char *)line, 5381UL); - if (!parseline(line, fields)) - break; + parseline(line, fields); parsedtime = 0; if (strtotime(fields[FieldUnixTimestamp], &parsedtime)) -- cgit v1.2.3