From ea2b9e0fb1dfd433e2dd054272f4ab8a37378178 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 11 Sep 2009 15:20:34 +0200 Subject: talloc:mksigs: allow PRINTF_ATTRIBUTE(..) macros function types as funcion args Michael --- lib/talloc/script/mksigs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/talloc') diff --git a/lib/talloc/script/mksigs.pl b/lib/talloc/script/mksigs.pl index a34950b09a..755cd79603 100755 --- a/lib/talloc/script/mksigs.pl +++ b/lib/talloc/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 -- cgit