aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal_gen.py
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-05-06 21:50:28 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-05-06 21:50:28 +0000
commit111ca9ae94868831bf9f74570260309d5467d610 (patch)
treee2cac54a239d87b345670a41758c463e29096b1d /ethereal_gen.py
parent0ad0d01b3dc7a7c9d87540b707d597e0de284cea (diff)
Get rid of "template_main_dissector_switch_msgtype_end", and get rid of
the unused "offset_saved" variable, as per comments by Frank Singleton. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5408 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'ethereal_gen.py')
-rw-r--r--ethereal_gen.py28
1 files changed, 1 insertions, 27 deletions
diff --git a/ethereal_gen.py b/ethereal_gen.py
index 9995bb88c3..e45c69ac0b 100644
--- a/ethereal_gen.py
+++ b/ethereal_gen.py
@@ -1,6 +1,6 @@
# -*- python -*-
#
-# $Id: ethereal_gen.py,v 1.25 2002/05/06 21:41:07 guy Exp $
+# $Id: ethereal_gen.py,v 1.26 2002/05/06 21:50:28 guy Exp $
#
# ethereal_gen.py (part of idl2eth)
#
@@ -2222,7 +2222,6 @@ static gboolean dissect_@dissname@(tvbuff_t *tvb, packet_info *pinfo, proto_tree
proto_tree *tree = NULL; /* init later, inside if(tree) */
gboolean be; /* big endianess */
- guint32 offset_saved = (*offset); /* save in case we must back out */
if (check_col(pinfo->cinfo, COL_PROTOCOL))
col_set_str(pinfo->cinfo, COL_PROTOCOL, \"@disprot@\");
@@ -2273,23 +2272,6 @@ break;
"""
- template_main_dissector_switch_msgtype_end = """\
-
-
-/*
- * We failed to match ANY operations, so perhaps this is not for us !
- */
-
-(*offset) = offset_saved; /* be nice */
-
-return FALSE;
-
-
-"""
-
-
-
-
template_main_dissector_switch_msgtype_all_other_msgtype = """\
case CancelRequest:
case LocateRequest:
@@ -2307,14 +2289,6 @@ default:
"""
- template_main_dissector_switch_msgtype_end = """\
-
- return TRUE;
-
-} /* switch */
-
-"""
-
template_main_dissector_end = """\
return FALSE;