summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-09-11 14:55:52 +0200
committerStefan Metzmacher <metze@samba.org>2009-12-16 08:03:45 +0100
commit67da31e2225897739551dca3603fcee50aa7d2e8 (patch)
tree5c7faf6ae82ce3ed567ee012d4a524704e3a7d93
parent67d7709140884884b08dbcbbe3ae99a4f016fb66 (diff)
downloadsamba-67da31e2225897739551dca3603fcee50aa7d2e8.tar.gz
samba-67da31e2225897739551dca3603fcee50aa7d2e8.tar.xz
samba-67da31e2225897739551dca3603fcee50aa7d2e8.zip
tdb:mksigs: ignore struct forward declarations.
Michael (cherry picked from samba commit ecd12bfb382da072595391d5bf11a893d39a0479) Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit 66fffa577e051212ac7541be906b6c80f4a7c0c9)
-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 28a2e747a0..3eb90d99dc 100755
--- a/ctdb/lib/tdb/script/mksigs.pl
+++ b/ctdb/lib/tdb/script/mksigs.pl
@@ -121,6 +121,7 @@ while (my $LINE = <>) {
next if ($LINE =~ /^typedef\s/);
next if ($LINE =~ /^enum\s+[^\{\(]+\s+\{/);
next if ($LINE =~ /^struct\s+[^\{\(]+\s+\{.*\}\s*;/);
+ next if ($LINE =~ /^struct\s+[a-zA-Z0-9_]+\s*;/);
# concetenate function prototypes that stretch over multiple lines
$REST = $LINE;