From b008274afdbe375b32a7e66dbd073e200f6f0587 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 4 Feb 2011 12:57:53 +0100 Subject: Nuked almost all trailing white space. We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again. --- common/xreadline.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common/xreadline.c') diff --git a/common/xreadline.c b/common/xreadline.c index 4ea10d75b..5a9a5270f 100644 --- a/common/xreadline.c +++ b/common/xreadline.c @@ -30,7 +30,7 @@ considered a byte stream ending in a LF. If MAX_LENGTH is not NULL, it shall point to a value with the - maximum allowed allocation. + maximum allowed allocation. Returns the length of the line. EOF is indicated by a line of length zero. A truncated line is indicated by setting the value at @@ -45,7 +45,7 @@ append a CR,LF,Nul */ ssize_t -read_line (FILE *fp, +read_line (FILE *fp, char **addr_of_buffer, size_t *length_of_buffer, size_t *max_length) { @@ -94,7 +94,7 @@ read_line (FILE *fp, if (!*addr_of_buffer) { int save_errno = errno; - xfree (buffer); + xfree (buffer); *length_of_buffer = 0; if (max_length) *max_length = 0; @@ -103,7 +103,7 @@ read_line (FILE *fp, } buffer = *addr_of_buffer; *length_of_buffer = length; - length -= 3; + length -= 3; p = buffer + nbytes; } *p++ = c; -- cgit v1.2.3