Commit 99c0d78e authored by Pietro Fezzardi's avatar Pietro Fezzardi

lib/conf.c: trivial: use builtin blank() function

instead to rewrite every time the checks for the parser
parent 961deb82
...@@ -170,7 +170,7 @@ static char *first_word(char *line, char **rest) ...@@ -170,7 +170,7 @@ static char *first_word(char *line, char **rest)
line [l--] = '\0'; line [l--] = '\0';
/* skip leading blanks to find first word */ /* skip leading blanks to find first word */
while (*line && blank(*line)) while (*line && blank(*line))
line++; line++;
ret = line; ret = line;
/* find next blank and thim there*/ /* find next blank and thim there*/
...@@ -290,7 +290,7 @@ static int pp_config_line(struct pp_globals *ppg, char *line, int lineno) ...@@ -290,7 +290,7 @@ static int pp_config_line(struct pp_globals *ppg, char *line, int lineno)
break; break;
case ARG_STR: case ARG_STR:
while (*line && (*line == ' ' || *line == '\t')) while (*line && blank(*line))
line++; line++;
cfg_arg.s = line; cfg_arg.s = line;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment