mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
28 lines
783 B
Diff
28 lines
783 B
Diff
--- cvs-1.11.23.org/lib/getline.h 2013-09-16 18:28:13.026099577 +0000
|
|
+++ cvs-1.11.23/lib/getline.h 2013-09-16 18:44:33.356064387 +0000
|
|
@@ -12,8 +12,6 @@
|
|
#define GETLINE_NO_LIMIT -1
|
|
|
|
int
|
|
- getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream));
|
|
-int
|
|
getline_safe __PROTO ((char **_lineptr, size_t *_n, FILE *_stream,
|
|
int limit));
|
|
int
|
|
--- cvs-1.11.23.org/lib/getline.c 2013-09-16 18:28:13.021099577 +0000
|
|
+++ cvs-1.11.23/lib/getline.c 2013-09-16 18:45:14.463062911 +0000
|
|
@@ -154,12 +154,7 @@
|
|
return ret;
|
|
}
|
|
|
|
-int
|
|
-getline (lineptr, n, stream)
|
|
- char **lineptr;
|
|
- size_t *n;
|
|
- FILE *stream;
|
|
-{
|
|
+ssize_t getline(char ** lineptr, size_t * n, FILE *stream) {
|
|
return getstr (lineptr, n, stream, '\n', 0, GETLINE_NO_LIMIT);
|
|
}
|
|
|