aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal_gen.py
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-05-06 21:50:28 +0000
committerGuy Harris <guy@alum.mit.edu>2002-05-06 21:50:28 +0000
commit937c162036cf4440e5a2133fc216c4b0190be19f (patch)
treee2cac54a239d87b345670a41758c463e29096b1d /ethereal_gen.py
parent1d97fc6d8c1d8d70c2ac970f6f0c977f6b7c5fd1 (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. svn path=/trunk/; revision=5408
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;