diff options
author | Werner Koch <[email protected]> | 2011-02-04 11:57:53 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2011-02-04 11:57:53 +0000 |
commit | b008274afdbe375b32a7e66dbd073e200f6f0587 (patch) | |
tree | 219e239d39cf06be3f03aa82fb572080ac163a15 /common/xreadline.c | |
parent | Let autogen.sh check the git config (diff) | |
download | gnupg-b008274afdbe375b32a7e66dbd073e200f6f0587.tar.gz gnupg-b008274afdbe375b32a7e66dbd073e200f6f0587.zip |
Nuked almost all trailing white space.post-nuke-of-trailing-ws
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.
Diffstat (limited to 'common/xreadline.c')
-rw-r--r-- | common/xreadline.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |