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
+1
View File
@@ -97,6 +97,7 @@ static const struct file_operations g_batteryops =
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Name: bat_charger_open * Name: bat_charger_open
* *
+1
View File
@@ -97,6 +97,7 @@ static const struct file_operations g_batteryops =
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions
****************************************************************************/ ****************************************************************************/
/**************************************************************************** /****************************************************************************
* Name: bat_gauge_open * Name: bat_gauge_open
* *
+4 -3
View File
@@ -1659,9 +1659,10 @@ int main(int argc, char **argv, char **envp)
lineno, indent); lineno, indent);
} }
if (line[indent+1] != ' ' && if (line[indent + 1] != ' ' &&
line[indent+1] != '\n' && line[indent + 1] != '*' &&
line[indent+1] != '/') line[indent + 1] != '\n' &&
line[indent + 1] != '/')
{ {
fprintf(stderr, fprintf(stderr,
"Invalid character after asterisk in comment block at line %d:%d\n", "Invalid character after asterisk in comment block at line %d:%d\n",