Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | |
| 3 | Change the getline return type to match its declaration. |
| 4 | |
| 5 | Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> |
| 6 | |
| 7 | diff -urN sed-4.1.2-orig/lib/getline.c sed-4.1.2/lib/getline.c |
| 8 | --- sed-4.1.2-orig/lib/getline.c 2010-08-31 08:47:50.070094024 +0800 |
| 9 | +++ sed-4.1.2/lib/getline.c 2010-08-31 08:48:50.982178172 +0800 |
| 10 | @@ -30,7 +30,7 @@ |
| 11 | necessary. Returns the number of characters read (not including the |
| 12 | null terminator), or -1 on error or EOF. */ |
| 13 | |
| 14 | -size_t |
| 15 | +ssize_t |
| 16 | getline (lineptr, n, stream) |
| 17 | char **lineptr; |
| 18 | size_t *n; |