Ethereal-dev: [Ethereal-dev] Variable redefinition in epan/dissectors/packet-ocsp.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Wed, 29 Dec 2004 14:14:00 -0600
The IBM v6 compiler on AIX 4.3.3 doesn't like it when a variable is
redefined. Version_vals is defined in epan/dissectors/packet-x509af.h:
  extern const value_string Version_vals[];

-- 
albert chin (china@xxxxxxxxxxxxxxxxxx)

-- snip snip
--- epan/dissectors/packet-ocsp.c.orig	2004-12-29 13:56:28.000000000 -0600
+++ epan/dissectors/packet-ocsp.c	2004-12-29 13:56:41.000000000 -0600
@@ -188,7 +188,7 @@
 }
 
 
-static const value_string Version_vals[] = {
+static const value_string my_Version_vals[] = {
   {   0, "v1" },
   { 0, NULL }
 };
@@ -838,7 +838,7 @@
         "OCSPRequest/optionalSignature", HFILL }},
     { &hf_ocsp_version,
       { "version", "ocsp.version",
-        FT_INT32, BASE_DEC, VALS(Version_vals), 0,
+        FT_INT32, BASE_DEC, VALS(my_Version_vals), 0,
         "", HFILL }},
     { &hf_ocsp_requestorName,
       { "requestorName", "ocsp.requestorName",