From: Michael Adam Date: Fri, 11 Sep 2009 13:20:34 +0000 (+0200) Subject: tevent:mksigs: allow PRINTF_ATTRIBUTE(..) macros function types as funcion args X-Git-Tag: talloc-2.0.1~523^2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f98470e3a4add69858e50ded0c7e01393b314473;p=thirdparty%2Fsamba.git tevent:mksigs: allow PRINTF_ATTRIBUTE(..) macros function types as funcion args Michael --- diff --git a/lib/tevent/script/mksigs.pl b/lib/tevent/script/mksigs.pl index a34950b09a6..755cd796039 100755 --- a/lib/tevent/script/mksigs.pl +++ b/lib/tevent/script/mksigs.pl @@ -159,7 +159,7 @@ while (my $LINE = <>) { # remove trailing spaces $LINE =~ s/(.*?)\s*$/$1/; - $LINE =~ s/^(.*\))\s+PRINTF_ATTRIBUTE\(.*\);$/$1;/; + $LINE =~ s/^(.*\))\s+PRINTF_ATTRIBUTE\([^\)]*\)(\s*[;,])/$1$2/; $LINE =~ s/^(.*\))\s*[a-zA-Z0-9_]+\s*;$/$1;/; # remove parameter names - slightly too coarse probably