Ethereal-dev: Re: [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.

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Fri, 31 Dec 2004 03:35:58 +0100
On Wed, Dec 29, 2004 at 02:14:00PM -0600, Albert Chin wrote:
> 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[];

I just tried to look at it and it's currently over my head how to fix
this properly as:
a) both files (packet-ocsd.c and packet-x509af.h are generated files
b) Their spec files contain variables of the same name.

Ronnie: Would prefixing all static vars with the name of the protocol
(e.g. OCSD) make sense (e.g. Version -> OCSDVersion)? If so, could someone
who knows the asn2eth.py script fix this?
Hmm, maybe prefixing non-static Vars would be useful too??

Ciao 

   Joerg
-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.