aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-09-13 08:00:33 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-09-13 08:00:33 +0000
commit88a4c48f24bb6c80e8314bd21ddc4a5daab56b54 (patch)
treef47e2668858b08f74c40ad09cecab3a9167f16c7 /tools
parent8e149c4e97a7f062982a07f3196ddad2f09b5195 (diff)
from tomas kukosa, fix for generated _PDU() functions to match the dissector_t signature
svn path=/trunk/; revision=11984
Diffstat (limited to 'tools')
-rw-r--r--tools/asn2eth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/asn2eth.py b/tools/asn2eth.py
index 1b223ffea4..a6d211f903 100644
--- a/tools/asn2eth.py
+++ b/tools/asn2eth.py
@@ -948,12 +948,12 @@ class EthCtx:
#end out_field()
def out_pdu(f):
t = self.eth_hf[f]['ethtype']
- out = 'static int dissect_'+f+'(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {\n'
+ out = 'static void dissect_'+f+'(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {\n'
if (self.Ber()):
par=(('FALSE', 'tvb', '0', 'pinfo', 'tree', self.eth_hf[f]['fullname']),)
else:
par=(('tvb', '0', 'pinfo', 'tree', self.eth_hf[f]['fullname']),)
- out += self.eth_fn_call('dissect_%s_%s' % (self.eth_type[t]['proto'], t), ret='return',
+ out += self.eth_fn_call('dissect_%s_%s' % (self.eth_type[t]['proto'], t), ret='',
par=par)
out += '}\n'
return out