summaryrefslogtreecommitdiff
path: root/sfeed_gopher.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2020-04-01 18:40:02 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-04-01 18:49:24 +0200
commit7c99000c207c120d4094277b6ede56a36b929b46 (patch)
tree7fc5304ca7ec4f437c1c21f6e7b640cf83b601f0 /sfeed_gopher.c
parent785a50c37c11c8e92387f8409d91bd77c41297b2 (diff)
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.
Diffstat (limited to 'sfeed_gopher.c')
-rw-r--r--sfeed_gopher.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sfeed_gopher.c b/sfeed_gopher.c
index 27f23ef..7362716 100644
--- a/sfeed_gopher.c
+++ b/sfeed_gopher.c
@@ -51,8 +51,7 @@ printfeed(FILE *fpitems, FILE *fpin, struct feed *f)
while ((linelen = getline(&line, &linesize, fpin)) > 0) {
if (line[linelen - 1] == '\n')
line[--linelen] = '\0';
- if (!parseline(line, fields))
- break;
+ parseline(line, fields);
parsedtime = 0;
if (strtotime(fields[FieldUnixTimestamp], &parsedtime))