From dbb7eab8ba464ea853be8befc5059b1cd939b8f8 Mon Sep 17 00:00:00 2001 From: Andy Whitcroft Date: Fri, 27 Feb 2009 14:03:07 -0800 Subject: [PATCH] --- yaml --- r: 131845 b: refs/heads/master c: a3340b35787975414d5f6fee83e00640688be2cb h: refs/heads/master i: 131843: 03e9bb89bd88f7153e926c7c3088ff5452d245cb v: v3 --- [refs] | 2 +- trunk/scripts/checkpatch.pl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index ff1ca592bc43..5456381ae042 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 00ef4ece05096a5c523e265b8ce6627fb5e171c2 +refs/heads/master: a3340b35787975414d5f6fee83e00640688be2cb diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index 92d13710ff52..15a590425129 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/scripts/checkpatch.pl @@ -1886,11 +1886,11 @@ sub process { if ($ctx !~ /[WEBC]x./ && $ca !~ /(?:\)|!|~|\*|-|\&|\||\+\+|\-\-|\{)$/) { ERROR("space required before that '$op' $at\n" . $hereptr); } - if ($op eq '*' && $cc =~/\s*const\b/) { + if ($op eq '*' && $cc =~/\s*$Modifier\b/) { # A unary '*' may be const } elsif ($ctx =~ /.xW/) { - ERROR("space prohibited after that '$op' $at\n" . $hereptr); + ERROR("Aspace prohibited after that '$op' $at\n" . $hereptr); } # unary ++ and unary -- are allowed no space on one side.