From 2cb372f7a457d16bef791eb9670f61555510fe87 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 31 Dec 2005 00:02:41 +0000 Subject: r12623: Another round of fixes for the prototypes of tables.c (This used to be commit fb5b22e3dc9ad0892817ae72a73e1e80f3db75c5) --- source4/librpc/tables.pl | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'source4/librpc/tables.pl') 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 = ) { 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 <