summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.c b/util.c
index ec26896c..8ccd5236 100644
--- a/util.c
+++ b/util.c
@@ -139,10 +139,10 @@ char *stristr(const char *String, const char *Pattern)
necessary. Returns the number of characters read (not including
the null terminator), or -1 on error or EOF. */
-ssize_t
+int
getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
{
- ssize_t result;
+ int result;
size_t cur_len = 0;
if (lineptr == NULL || n == NULL || fp == NULL)
@@ -216,7 +216,7 @@ getdelim (char **lineptr, size_t *n, int delimiter, FILE *fp)
return result;
}
-ssize_t
+int
getline (char **lineptr, size_t *n, FILE *stream)
{
return getdelim (lineptr, n, '\n', stream);