tools/nxstyle.c: Eliminate false positive 'Invalid character after asterisk in comment block'.

This commit is contained in:
Gregory Nutt 2019-11-09 12:10:22 -06:00
parent a450b85dc8
commit a9ef2b4208
3 changed files with 6 additions and 3 deletions

View File

@ -97,6 +97,7 @@ static const struct file_operations g_batteryops =
/****************************************************************************
* Private Functions
****************************************************************************/
/****************************************************************************
* Name: bat_charger_open
*

View File

@ -97,6 +97,7 @@ static const struct file_operations g_batteryops =
/****************************************************************************
* Private Functions
****************************************************************************/
/****************************************************************************
* Name: bat_gauge_open
*

View File

@ -1659,9 +1659,10 @@ int main(int argc, char **argv, char **envp)
lineno, indent);
}
if (line[indent+1] != ' ' &&
line[indent+1] != '\n' &&
line[indent+1] != '/')
if (line[indent + 1] != ' ' &&
line[indent + 1] != '*' &&
line[indent + 1] != '\n' &&
line[indent + 1] != '/')
{
fprintf(stderr,
"Invalid character after asterisk in comment block at line %d:%d\n",