cvs-musl.patch 783 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
--- 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);
 }