diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-04-01 18:40:02 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-04-01 18:49:24 +0200 |
commit | 7c99000c207c120d4094277b6ede56a36b929b46 (patch) | |
tree | 7fc5304ca7ec4f437c1c21f6e7b640cf83b601f0 /util.h | |
parent | 785a50c37c11c8e92387f8409d91bd77c41297b2 (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 'util.h')
-rw-r--r-- | util.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 *); |