diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-02 13:45:43 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-08-02 13:45:43 +0200 |
commit | ce3a22c641a9a7f1ced983d407e49ba31c71bfd2 (patch) | |
tree | a68272ab87076c6609cf8ee1a2acad04029cc597 /util.h | |
parent | 3d972927d748267b0e999ef85bc56bab9e771b5d (diff) |
util: simplify parseline() and check t for strtotime().
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -25,12 +25,12 @@ enum { FieldUnixTimestamp = 0, FieldTimeFormatted, FieldTitle, FieldLink, FieldContent, FieldContentType, FieldId, FieldAuthor, FieldFeedType, FieldLast }; -int absuri(const char *, const char *, char *, size_t); -int encodeuri(const char *, char *, size_t); -int parseline(char **, size_t *, char **, unsigned int, int, FILE *); -int parseuri(const char *, struct uri *, int); -int strtotime(const char *, time_t *); -char * xbasename(const char *); -void xmlencode(const char *, FILE *); +int absuri(const char *, const char *, char *, size_t); +int encodeuri(const char *, char *, size_t); +ssize_t parseline(char **, size_t *, char *[FieldLast], FILE *); +int parseuri(const char *, struct uri *, int); +int strtotime(const char *, time_t *); +char * xbasename(const char *); +void xmlencode(const char *, FILE *); |