summaryrefslogtreecommitdiff
path: root/ethereal_gen.py
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-07-20 09:50:08 +0000
committerGuy Harris <guy@alum.mit.edu>2001-07-20 09:50:08 +0000
commitc2c99c8d528fbeb7aef2715e55115ea86d169c30 (patch)
tree9253eb9a82358ce2af17fb054654e3b7e1e2778e /ethereal_gen.py
parent8fa32699a07250f37543c4e9c4ff912d2e31f55c (diff)
downloadwireshark-c2c99c8d528fbeb7aef2715e55115ea86d169c30.tar.gz
Do not put zero-length arrays into the generated dissector; GCC may let
you get away with them, but other compilers, e.g. Microsoft Visual C++, don't. svn path=/trunk/; revision=3752
Diffstat (limited to 'ethereal_gen.py')
-rw-r--r--ethereal_gen.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ethereal_gen.py b/ethereal_gen.py
index 38c4d102a8..25378f3c44 100644
--- a/ethereal_gen.py
+++ b/ethereal_gen.py
@@ -1,6 +1,6 @@
# -*- python -*-
#
-# $Id: ethereal_gen.py,v 1.6 2001/07/16 20:44:28 oabad Exp $
+# $Id: ethereal_gen.py,v 1.7 2001/07/20 09:50:08 guy Exp $
#
#
# ethereal_gen.py (part of idl2eth)
@@ -1257,11 +1257,13 @@ void proto_register_giop_@dissector_name@(void) {
/* setup list of header fields */
+#if 0
static hf_register_info hf[] = {
/* no fields yet */
};
+#endif
/* setup protocol subtree array */
@@ -1273,7 +1275,9 @@ void proto_register_giop_@dissector_name@(void) {
proto_@dissector_name@ = proto_register_protocol(\"@description@\" , \"@protocol_name@\", \"giop-@dissector_name@\" );
+#if 0
proto_register_field_array(proto_@dissector_name@, hf, array_length(hf));
+#endif
proto_register_subtree_array(ett,array_length(ett));
}