mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Remove all trailing white space on the lines.
Suggested by: Phil Taylor <phil@zipmail.co.uk>
This commit is contained in:
parent
d7b1079903
commit
4d50bdbc0c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13015
@ -12,7 +12,8 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
@ -272,6 +273,13 @@ read_piece(char *input_file)
|
||||
{
|
||||
line_no++;
|
||||
|
||||
/*
|
||||
* Remove all trailing white space.
|
||||
*/
|
||||
i = strlen(line) - 1;
|
||||
while (i > 0 && isspace(line[i]))
|
||||
line[--i] = '\0';
|
||||
|
||||
/*
|
||||
* Look for the beginning of an encoded piece.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user