summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-09-11 15:11:16 +0200
committerStefan Metzmacher <metze@samba.org>2009-12-16 08:03:46 +0100
commita0dba36390be31bf4e9128ce6759f82cc3edb535 (patch)
tree515d5e369c15083777f79727d43f84b3437edf8d
parent6d9ce0ef50a89f19417d40ad7904757e23203c5d (diff)
downloadsamba-a0dba36390be31bf4e9128ce6759f82cc3edb535.tar.gz
samba-a0dba36390be31bf4e9128ce6759f82cc3edb535.tar.xz
samba-a0dba36390be31bf4e9128ce6759f82cc3edb535.zip
tdb:mksigs: ignore symbols (like _DEPRECATED_) after closing function parentheses
Michael (cherry picked from samba commit 25939a627f15b7a21110767d47be0f50f32d3943) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit 2e69647404c87c438ae7c180277ac3b532941efd)
-rwxr-xr-xctdb/lib/tdb/script/mksigs.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/ctdb/lib/tdb/script/mksigs.pl b/ctdb/lib/tdb/script/mksigs.pl
index ab2e18ec52..bd76a04a26 100755
--- a/ctdb/lib/tdb/script/mksigs.pl
+++ b/ctdb/lib/tdb/script/mksigs.pl
@@ -160,6 +160,7 @@ while (my $LINE = <>) {
$LINE =~ s/(.*?)\s*$/$1/;
$LINE =~ s/^(.*\))\s+PRINTF_ATTRIBUTE\(.*\);$/$1;/;
+ $LINE =~ s/^(.*\))\s*[a-zA-Z0-9_]+\s*;$/$1;/;
# remove parameter names - slightly too coarse probably
$LINE =~ s/([\s\(]\*?)[_0-9a-zA-Z]+\s*([,\)])/$1$2/g;