diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-07-20 09:50:08 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-07-20 09:50:08 +0000 |
commit | c045cf64814f9b32e3a7ba5c3a7b2914fbb7ddc5 (patch) | |
tree | 9253eb9a82358ce2af17fb054654e3b7e1e2778e /ethereal_gen.py | |
parent | d437618530718b19863568ced93def606b21d627 (diff) |
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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3752 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'ethereal_gen.py')
-rw-r--r-- | ethereal_gen.py | 6 |
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)); } |