From: Jose Luis Tallon Date: Tue, 29 Dec 2015 16:43:12 +0000 (+0100) Subject: Code styling: apply fixes as per Mark's advice. X-Git-Tag: v1.6~5^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6303eed9f5496d25873d8b18eecf604b94e4cf66;p=platform%2Fupstream%2Flibconfig.git Code styling: apply fixes as per Mark's advice. --- diff --git a/lib/scanner.l b/lib/scanner.l index 51939f2..436423c 100644 --- a/lib/scanner.l +++ b/lib/scanner.l @@ -237,15 +237,15 @@ include_dir_open ^[ \t]*@include_dir[ \t]+\" int errsave = errno; errno = 0; llval = strtoll(yytext, &endptr, 0); /* base 10 or base 8 */ - if( '\0'!=*endptr || 0!=errno ) + if(*endptr || errno) { errno = 0; return(TOK_ERROR); /* some error occured ... */ } errno = errsave; - if( '0'==*yytext && '\0'!=*(yytext+1) ) - { /* it's octal... so INT we go */ - yylval->ival=(int)(llval); + if((*yytext == '0') && (*(yytext+1) != '\0')) + { /* it's octal... so INT we go */ + yylval->ival = (int)(llval); return(TOK_INTEGER); }