diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-12-31 00:02:41 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:49:06 -0500 |
commit | 2cb372f7a457d16bef791eb9670f61555510fe87 (patch) | |
tree | 4e69fe5f6e60c8b0fdbbc4bb0bb7b96ffb310abc /source4/librpc/tables.pl | |
parent | 046a54f96394fe49226ab2b48fdeb7c07937ea57 (diff) | |
download | samba-2cb372f7a457d16bef791eb9670f61555510fe87.tar.gz samba-2cb372f7a457d16bef791eb9670f61555510fe87.tar.xz samba-2cb372f7a457d16bef791eb9670f61555510fe87.zip |
r12623: Another round of fixes for the prototypes of tables.c
(This used to be commit fb5b22e3dc9ad0892817ae72a73e1e80f3db75c5)
Diffstat (limited to 'source4/librpc/tables.pl')
-rw-r--r-- | source4/librpc/tables.pl | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source4/librpc/tables.pl b/source4/librpc/tables.pl index 462ef19e08..9f30674de8 100644 --- a/source4/librpc/tables.pl +++ b/source4/librpc/tables.pl @@ -55,7 +55,8 @@ sub process_file($) while (my $line = <FILE>) { if ($line =~ /extern const struct dcerpc_interface_table (\w+);/) { $found = 1; - $init_fns.="\tlibrpc_register_interface(&$1);\n"; + $init_fns.="\tstatus = librpc_register_interface(&$1);\n"; + $init_fns.="\tif (NT_STATUS_IS_ERR(status)) return status;\n\n"; } } @@ -81,12 +82,9 @@ process_file($_) foreach (@ARGV); print TABLEC <<EOF; -NTSTATUS dcerpc_table_init(void) +NTSTATUS dcerpc_register_builtin_interfaces(void) { - static BOOL initialized = False; - - if (initialized) return NT_STATUS_OK; - initialized = True; + NTSTATUS status; $init_fns |