Blame SOURCES/cvs-1.11.23-getline64.patch
|
|
83a95a |
--- cvs-1.11.23/lib/getline.c 2005-04-04 22:46:05.000000000 +0200
|
|
|
83a95a |
+++ cvs-1.11.23/lib/getline.c.old 2008-06-03 19:06:25.000000000 +0200
|
|
|
83a95a |
@@ -154,7 +154,7 @@
|
|
|
83a95a |
return ret;
|
|
|
83a95a |
}
|
|
|
83a95a |
|
|
|
83a95a |
-int
|
|
|
83a95a |
+ssize_t
|
|
|
83a95a |
getline (lineptr, n, stream)
|
|
|
83a95a |
char **lineptr;
|
|
|
83a95a |
size_t *n;
|
|
|
83a95a |
@@ -163,7 +163,7 @@
|
|
|
83a95a |
return getstr (lineptr, n, stream, '\n', 0, GETLINE_NO_LIMIT);
|
|
|
83a95a |
}
|
|
|
83a95a |
|
|
|
83a95a |
-int
|
|
|
83a95a |
+ssize_t
|
|
|
83a95a |
getline_safe (lineptr, n, stream, limit)
|
|
|
83a95a |
char **lineptr;
|
|
|
83a95a |
size_t *n;
|
|
|
83a95a |
--- cvs-1.11.23/lib/getline.h 2005-04-04 22:46:05.000000000 +0200
|
|
|
83a95a |
+++ cvs-1.11.23/lib/getline.h.old 2008-06-03 19:06:27.000000000 +0200
|
|
|
83a95a |
@@ -11,9 +11,9 @@
|
|
|
83a95a |
|
|
|
83a95a |
#define GETLINE_NO_LIMIT -1
|
|
|
83a95a |
|
|
|
83a95a |
-int
|
|
|
83a95a |
+ssize_t
|
|
|
83a95a |
getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream));
|
|
|
83a95a |
-int
|
|
|
83a95a |
+ssize_t
|
|
|
83a95a |
getline_safe __PROTO ((char **_lineptr, size_t *_n, FILE *_stream,
|
|
|
83a95a |
int limit));
|
|
|
83a95a |
int
|