aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-05-25 21:23:09 +0000
committerGuy Harris <guy@alum.mit.edu>2004-05-25 21:23:09 +0000
commit40ecde2765b02525baa5a9316549e1b3f0dc8212 (patch)
tree0497237418193b19e0763dc010c0df65ae932c09 /tools
parent3a0e53c86601eb8d2830b23e45c7be3666ce34a0 (diff)
The function pointer in a "per_choice_t" or a "per_sequence_t" is to a
function that returns "int", not "guint32"; define those functions to return "int". svn path=/trunk/; revision=10999
Diffstat (limited to 'tools')
-rw-r--r--tools/asn2eth.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/asn2eth.py b/tools/asn2eth.py
index b725402864..2c116d3955 100644
--- a/tools/asn2eth.py
+++ b/tools/asn2eth.py
@@ -5,7 +5,7 @@
# ASN.1 to Ethereal dissector compiler
# 2004 Tomas Kukosa
#
-# $Id: asn2eth.py,v 1.2 2004/05/25 21:06:54 guy Exp $
+# $Id: asn2eth.py,v 1.3 2004/05/25 21:23:09 guy Exp $
#
"""ASN.1 to Ethereal PER dissector compiler"""
@@ -747,10 +747,10 @@ class EthCtx:
if (self.Ber()):
if (i): postfix = '_impl'; impl = 'TRUE'
else: postfix = ''; impl = 'FALSE'
- out = 'static guint32 dissect_'+f+postfix+'(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\n'
+ out = 'static int dissect_'+f+postfix+'(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\n'
par=((impl, 'tvb', 'offset', 'pinfo', 'tree', f),)
else:
- out = 'static guint32 dissect_'+f+'(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) {\n'
+ out = 'static int dissect_'+f+'(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) {\n'
par=(('tvb', 'offset', 'pinfo', 'tree', f),)
out += self.eth_fn_call('dissect_%s_%s' % (self.eth_type[t]['proto'], t), ret='return',
par=par)