From 298c372afa2bb8d29f66ef6a6606880c5c641733 Mon Sep 17 00:00:00 2001 From: Petro Karashchenko Date: Thu, 25 Nov 2021 07:06:35 +0200 Subject: [PATCH] tools/nxstyle: fix nxstyle check for pointer to function types Signed-off-by: Petro Karashchenko --- tools/nxstyle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index f2b44fb8e8c..c63328aaac7 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -2469,7 +2469,7 @@ int main(int argc, char **argv, char **envp) { /* REVISIT: This gives false alarms on syntax like *--ptr */ - if (line[n - 1] != ' ') + if (line[n - 1] != ' ' && line[n - 1] != '(') { ERROR("Operator/assignment must be preceded " "with whitespace", lineno, n);