summaryrefslogtreecommitdiff
path: root/pidl
diff options
context:
space:
mode:
authorAurelien Aptel <aaptel@suse.com>2016-02-05 14:36:27 +0100
committerStefan Metzmacher <metze@samba.org>2016-06-20 12:08:19 +0200
commitc5b598d383bd391bc238249e414c65c90448971b (patch)
tree4263f83f99612c7c01923aa4756acdb93344db47 /pidl
parent33baf1cccbd600e803ddfdc0cb8e7c374dc46aef (diff)
downloadsamba-c5b598d383bd391bc238249e414c65c90448971b.tar.gz
pidl/ws: fix -Wmissing-prototype
Port Wireshark commit e759d82 Author: Alexis La Goutte <alexis.lagoutte@gmail.com> Date: Fri Sep 26 18:47:53 2014 +0200 PIDL: fix -Wmissing-prototype Change-Id: I4cae47450e8026b10bd373828f235184560e0a99 Reviewed-on: https://code.wireshark.org/review/4308 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net> Signed-off-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Wireshark/NDR.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
index 158564f7bfb..c9719ac04f7 100644
--- a/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
+++ b/pidl/lib/Parse/Pidl/Wireshark/NDR.pm
@@ -858,6 +858,8 @@ sub RegisterInterface($$)
$self->pidl_code("{");
$self->indent;
+ $self->{res}->{headers} .= "void proto_register_dcerpc_$x->{NAME}(void);\n";
+
$self->{res}->{code}.=$self->DumpHfList()."\n";
$self->{res}->{code}.="\n".DumpEttList($self->{ett})."\n";
@@ -910,6 +912,8 @@ sub RegisterInterfaceHandoff($$)
$self->pidl_code("}");
$self->pidl_fn_end("proto_reg_handoff_dcerpc_$x->{NAME}");
+ $self->{res}->{headers} .= "void proto_reg_handoff_dcerpc_$x->{NAME}(void);\n";
+
$self->{hf_used}->{"hf_$x->{NAME}_opnum"} = 1;
}
}
@@ -1119,12 +1123,12 @@ sub Parse($$$$$)
my $h_basename = basename($h_filename);
$self->{res}->{headers} .= "#include \"$h_basename\"\n";
+
$self->pidl_code("");
if (defined($self->{conformance}->{ett})) {
register_ett($self,$_) foreach(@{$self->{conformance}->{ett}})
}
-
# Wireshark protocol registration
foreach (@$ndr) {