From 4d1f9d1def5bf5fea64722626028d94da49c654c Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 10 Dec 2001 20:43:59 +0000 Subject: Added "return offset;" to end of generated function. We're getting really close now! Ethereal can properly decode OpenPolicy requests and responses using pidl generated code. QueryInfoPolicy is nearly working. (This used to be commit 23a9812987bad6fcf7bf131eafd2bf39d558eeb5) --- source4/build/pidl/eparser.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/source4/build/pidl/eparser.pm b/source4/build/pidl/eparser.pm index 420668109d..3cb71a6c7e 100644 --- a/source4/build/pidl/eparser.pm +++ b/source4/build/pidl/eparser.pm @@ -225,6 +225,7 @@ sub ParseTypedef($) $res .= "static int prs_$typedef->{NAME}(tvbuff_t *tvb, int offset,\ \tpacket_info *pinfo, proto_tree *tree, int flags, char *name)\n{\n"; ParseType($typedef->{DATA}); + $res .= "\treturn offset;\n"; $res .= "}\n\n"; } -- cgit