History

checkpatch: ensure cast type is unique in the context parser

Ensure the cast type is unique in the context parser, we do not want them to detect as a comma ','.

Andy Whitcroft committed 14 years ago

Commit addcdce1 parent c81769f1 file · +1 −1Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+1−1
@@ -1032,7 +1032,7 @@ sub annotate_values { · 1031 unmodified lines
10321032 } elsif ($cur =~ /^(\(\s*$Type\s*)\)/ && $av_pending eq '_') {
10331033 print "CAST($1)\n" if ($dbg_values > 1);
10341034 push(@av_paren_type, $type);
1035− $type = 'C';
1035+ $type = 'c';
10361036
10371037 } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\)|\(|\s*$)/) {
10381038 print "DECLARE($1)\n" if ($dbg_values > 1);