diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-11-18 19:59:11 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-11-18 19:59:11 +0000 |
commit | 61ba58ac8372171e2aa0acf3af78c7afb3e5a0e6 (patch) | |
tree | fcb0e2e5cd21f5fa8881b39453c73a84a34c62c7 /packet-stat.c | |
parent | ef8ff95ac8836e63f55c0c7ada1fe97f631d65bb (diff) |
Zero-length arrays are a GCC extension, and some compilers don't support
them - don't "#if 0" out the initializers for "hf[]", "#if 0" out the
entire declaration of "hf[]" and the call that uses "hf[]".
svn path=/trunk/; revision=1059
Diffstat (limited to 'packet-stat.c')
-rw-r--r-- | packet-stat.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packet-stat.c b/packet-stat.c index 09643118d2..7ddc9ee45c 100644 --- a/packet-stat.c +++ b/packet-stat.c @@ -1,7 +1,7 @@ /* packet-stat.c * Routines for stat dissection * - * $Id: packet-stat.c,v 1.2 1999/11/16 11:42:58 guy Exp $ + * $Id: packet-stat.c,v 1.3 1999/11/18 19:59:11 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@unicom.net> @@ -65,19 +65,21 @@ const vsff stat_proc[] = { void proto_register_stat(void) { - static hf_register_info hf[] = { #if 0 + static hf_register_info hf[] = { { &hf_stat_path, { "Path", "stat.path", FT_STRING, BASE_DEC, NULL, 0, "Path" }}, -#endif }; +#endif static gint *ett[] = { &ett_stat, }; proto_stat = proto_register_protocol("Status Service", "stat"); +#if 0 proto_register_field_array(proto_stat, hf, array_length(hf)); +#endif proto_register_subtree_array(ett, array_length(ett)); /* Register the protocol as RPC */ |