diff --git a/cf/make-proto.pl b/cf/make-proto.pl index 4b5f5c55f..7bf2cd686 100644 --- a/cf/make-proto.pl +++ b/cf/make-proto.pl @@ -49,9 +49,9 @@ while(<>) { s/\/\*(.|\n)*\ca//; } s/^\s*//; - s/\s$//; + s/\s*$//; s/\s+/ /g; - if($line =~ /\)\s$/){ + if($_ =~ /\)$/){ if(!/^static/ && !/^PRIVATE/){ if(/(.*)(__attribute__\s?\(.*\))/) { $attr = $2;