aboutgitcodebugslistschat
path: root/lineread.h
diff options
context:
space:
mode:
Diffstat (limited to 'lineread.h')
-rw-r--r--lineread.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lineread.h b/lineread.h
index af86418..9203e28 100644
--- a/lineread.h
+++ b/lineread.h
@@ -18,14 +18,15 @@
* @buf: Buffer storing data read from file.
*/
struct lineread {
- int fd; int next_line;
- int count;
+ int fd;
+ ssize_t next_line;
+ ssize_t count;
/* One extra byte for possible trailing \0 */
char buf[LINEREAD_BUFFER_SIZE+1];
};
void lineread_init(struct lineread *lr, int fd);
-int lineread_get(struct lineread *lr, char **line);
+ssize_t lineread_get(struct lineread *lr, char **line);
#endif /* _LINEREAD_H */