nxstyle: Fix distinction be source and header file for long lines.

For some unknow reason, long lines were reported as WARNING is header files, but as ERRORS in C source file.  There are errors where ever they occur.
This commit is contained in:
Gregory Nutt 2020-05-19 16:19:32 -06:00 committed by hartmannathan
parent a3b643fdc1
commit 3b62765edd

View File

@ -2428,15 +2428,7 @@ int main(int argc, char **argv, char **envp)
if (m > g_maxline && !rhcomment)
{
if (g_file_type == C_SOURCE)
{
ERROR("Long line found", lineno, m);
}
else if (g_file_type == C_HEADER)
{
WARN("Long line found", lineno, m);
}
ERROR("Long line found", lineno, m);
}
}