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. --- util.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'util.h') diff --git a/util.h b/util.h index 6d0d58d..cf250ec 100644 --- a/util.h +++ b/util.h @@ -33,9 +33,9 @@ enum { FieldContentType, FieldId, FieldAuthor, FieldEnclosure, FieldLast }; -int absuri(char *, size_t, const char *, const char *); -size_t parseline(char *, char *[FieldLast]); -int parseuri(const char *, struct uri *, int); -void printutf8pad(FILE *, const char *, size_t, int); -int strtotime(const char *, time_t *); -void xmlencode(const char *, FILE *); +int absuri(char *, size_t, const char *, const char *); +void parseline(char *, char *[FieldLast]); +int parseuri(const char *, struct uri *, int); +void printutf8pad(FILE *, const char *, size_t, int); +int strtotime(const char *, time_t *); +void xmlencode(const char *, FILE *); -- cgit v1.2.3