From 15f5f89995de6f10a5dc7b30ebf87d856c4e1127 Mon Sep 17 00:00:00 2001 From: Brian Norris Date: Mon, 27 Jun 2011 11:27:20 -0700 Subject: mtd-utils: remove whitespace at end of lines Signed-off-by: Brian Norris Acked-by: Mike Frysinger Signed-off-by: Artem Bityutskiy --- ubi-utils/libiniparser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ubi-utils/libiniparser.c') diff --git a/ubi-utils/libiniparser.c b/ubi-utils/libiniparser.c index 3bea51e..898f57f 100644 --- a/ubi-utils/libiniparser.c +++ b/ubi-utils/libiniparser.c @@ -82,9 +82,9 @@ static char * strstrip(char * s) { static char l[ASCIILINESZ+1]; char * last ; - + if (s==NULL) return NULL ; - + while (isspace((int)*s) && *s) s++; memset(l, 0, ASCIILINESZ+1); strcpy(l, s); @@ -457,7 +457,7 @@ static line_status iniparser_line( char * section, char * key, char * value) -{ +{ line_status sta ; char line[ASCIILINESZ+1]; int len ; @@ -471,7 +471,7 @@ static line_status iniparser_line( sta = LINE_EMPTY ; } else if (line[0]=='#') { /* Comment line */ - sta = LINE_COMMENT ; + sta = LINE_COMMENT ; } else if (line[0]=='[' && line[len-1]==']') { /* Section name */ sscanf(line, "[%[^]]", section); -- cgit v1.2.3