From 3b62765edd619263aada47e8fb8a17ca0d3c85c6 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 19 May 2020 16:19:32 -0600 Subject: [PATCH] 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. --- tools/nxstyle.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index 1b0f39a00e..9e66227c77 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -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); } }