summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/header.pm
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-24 01:28:22 -0600
committerStefan Metzmacher <metze@samba.org>2007-12-24 01:51:07 -0600
commitc13ae707313c5bf9819a75c1699d099565d2494d (patch)
tree9bc499e9ec34156cb7d3f58601fb41b7a92c5f61 /source4/build/smb_build/header.pm
parentac267899b49567b677289a23e83c09d19b1bdb3b (diff)
downloadsamba-c13ae707313c5bf9819a75c1699d099565d2494d.tar.gz
samba-c13ae707313c5bf9819a75c1699d099565d2494d.tar.bz2
samba-c13ae707313c5bf9819a75c1699d099565d2494d.zip
r26580: Include sentinel in build.h, in case the list is empty.
(This used to be commit f1997dabed584bdc864c4b7235c29603c312ef46)
Diffstat (limited to 'source4/build/smb_build/header.pm')
-rw-r--r--source4/build/smb_build/header.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/build/smb_build/header.pm b/source4/build/smb_build/header.pm
index b0dced4897..b52464922b 100644
--- a/source4/build/smb_build/header.pm
+++ b/source4/build/smb_build/header.pm
@@ -44,13 +44,12 @@ sub _prepare_build_h($)
$DEFINE->{VAL} .= "\t$_, \\\n";
unless (/{/) {
my $fn = $key->{INIT_FUNCTION_TYPE};
- unless(defined($fn)) { $fn = "NTSTATUS (*) (void)"; }
$fn =~ s/\(\*\)/$_/;
$output .= "$fn;\n";
}
}
- $DEFINE->{VAL} =~ s/, \\\n$//g; # Remove the last comma
+ $DEFINE->{VAL} .= "\t$key->{INIT_FUNCTION_SENTINEL} \n";
push(@defines,$DEFINE);
}