tools/nxstyle: Allow mixed case system calls.

System calls have mixed case.  They begin with SYS_ but then are followed by the system function name in lower case.
This commit is contained in:
Gregory Nutt 2020-02-14 10:04:52 -06:00 committed by Abdelatif Guettouche
parent 953b79260e
commit 75e3af0985

View File

@ -1272,9 +1272,12 @@ int main(int argc, char **argv, char **envp)
* considered false alarms.
*/
/* Ignore inttype.h strings beginning with PRIx */
/* Ignore inttype.h strings beginning with PRIx and
* system calls beginning with SYS_
*/
if ((strncmp(&line[ident_index], "PRIx", 4) == 0))
if ((strncmp(&line[ident_index], "PRIx", 4) == 0) ||
(strncmp(&line[ident_index], "SYS_", 4) == 0))
{
/* No error */
}